1. A method comprising: receiving a textual input; generating, by way of Latent Dirichlet Allocation (LDA) topic modeling, topics associated with the textual input and top words associated with each of the topics; determining a relative ranking of each top word with respect to other top words that correspond to a same topic in which the relative ranking is based on a determined relevance of the respective top word with respect to its corresponding topic; determining relationships of the top words with respect to a vocabulary of emotion synonym sets that includes word sets of synonyms that are associated with emotions of a set of emotions; determining emotion weights associated with the textual input that indicate a relationship between the topics and one or more emotions and that are based on the relative rankings of the top words and the relationships of the top words with respect to the vocabulary of emotion synonym sets; and performing an action in response to the textual input in which the action is determined based on the textual input and the emotion weights, the action including one or more of: a computer-based sentiment analysis of the textual input, text-to-speech generation of the textual input, a machine-translation of the textual input, and search based on the textual input.