Not a dumb question, it selects certain tweets, analyses them using the google language api.
All tweets together weighted over their followers determines the sentiment.
Sorry for the delays! I wasn't quite ready for the amount of requests coming from HN