Sentiment and Emotion Analysis of Shehbaz Sharif's Tweets: A Time-Agnostic Computational Approach


  • Sadia Saeed PhD Scholar, Air University Islamabad.
  • Dr. Tehseen Zahra Assistant Professor, Air University Islamabad.


sentiment analysis, emotion analysis, face, politician


Sentiment analysis, a computational method for examining sentiments, and emotion analysis, a more comprehensive approach, are both vital in understanding textual expressions. While sentiment analysis focuses on identifying positive, negative, and neutral sentiments, emotion analysis delves deeper to discern a broader spectrum of emotions including anger, disgust, fear, sadness, happiness, and surprise. Although sentiment and emotion analysis have been extensively explored, there is a notable dearth of research concerning Pakistani politicians. This study seeks to fill this gap by analyzing the online presence of Shehbaz Sharif, a prominent Pakistani politician, through sentiment and emotion analysis of his tweets. Sentiments were analyzed using Orange software, while emotions were manually identified based on Plutchik’s Wheel of Emotions, complementing the results obtained through Orange software. The findings indicate that Shehbaz Sharif predominantly expresses positive sentiments and projects a positive face through his online interactions. These results not only shed light on the demeanor of Shehbaz Sharif but also pave the way for further investigation into the realm of political discourse in Pakistan.


Aman, S., & Szpakowicz, S. (2007). Identifying expressions of emotion in text. In International Conference on Text, Speech and Dialogue, 196–205.

Broad, C. D. (1954). Emotion and sentiment. The Journal of Aesthetics and Art Criticism, 13(2), 203–214.

Brown, P., & Levinson, S. C. (1978). Universals in language usage: Politeness phenomena. In Questions and politeness: Strategies in social interaction (pp. 56–311). Cambridge University Press.

Culpeper, J., Bousfield, D., & Wichmann, A. (2003). Impoliteness revisited: With special reference to dynamic and prosodic aspects. Journal of Pragmatics, 35(10–11), 1545–1579.

Ekman, P. (1992a). An argument for basic emotions. Cognition & Emotion, 6(3–4), 169–200.

Ekman, P. (1992b). Are there basic emotions? Psychological Review, 99(3), 550–553.

Frijda, N. H. (1986). The emotions. Cambridge University Press.

George, J. M. (1989). Mood and absence. Journal of Applied Psychology, 74(2), 317.

George, J. M., & Jones, G. R. (1997). Experiencing work: Values, attitudes, and moods. Human Relations, 50(4), 393–416.

Goffman, E. (1967). Interaction Ritual: Essays in Face-to-Face Behavior. Garden City, New York.

Hakak, N. M., Mohd, M., Kirmani, M., & Mohd, M. (2017). Emotion analysis: A survey. In 2017 International Conference on Computer, Communications and Electronics (COMP?IX), (pp. 397–402).

Hatfield, E., Cacioppo, J. T., & Rapson, R. L. (1993). Emotional contagion. Current Directions in Psychological Science, 2(3), 96–100.

Izard, C. E. (2010). The many meanings/aspects of emotion: Definitions, functions, activation, and regulation. Emotion Review, 2(4), 363–370.

Kleinginna, P. R., & Kleinginna, A. M. (1981). A categorized list of emotion definitions, with suggestions for a consensual definition. Motivation and Emotion, 5(4), 345–379.

Leech, G. N. (2016). Principles of pragmatics. Routledge.

Mejova, Y. (2009). Sentiment analysis: An overview. University of Iowa, Computer Science Department.

Mineka, S., Rafaeli, E., Yovel, I., Davidson, R., Goldsmith, H., & Scherer, K. (2003). Handbook of affective science. Oxford University Press New York.

Montoyo, A., MartíNez-Barco, P., & Balahur, A. (2012). Subjectivity and sentiment analysis: An overview of the current state of the area and envisaged developments. Decision Support Systems, 53(4), 675-679.

Park, S.-H., Bae, B.-C., & Cheong, Y.-G. (2020). Emotion Recognition from Text Stories Using an Emotion Embedding Model. In 2020 IEEE International Conference on Big Data and Smart Computing (BigComp), (pp. 579–583).

Plutchik, R. (1980). A general psychoevolutionary theory of emotion. In Theories of emotion (pp. 3–33). Elsevier.

Plutchik, R. (2001). The nature of emotions: Human emotions have deep evolutionary roots, a fact that may explain their complexity and provide tools for clinical practice. American Scientist, 89(4), 344–350.

Saeed, S., Zahra, T., & Fayyaz, A. A. (2021). Sentiment Analysis of Imran Khan’s Tweets. Pakistan Journal of Psychological Research, 36(3), 473-494.

Staw, B. M., Sutton, R. I., & Pelled, L. H. (1994). Employee positive emotion and favorable outcomes at the workplace. Organization Science, 5(1), 51–71.

Stieglitz, S., & Dang-Xuan, L. (2012). Political communication and influence through microblogging–An empirical analysis of sentiment in Twitter messages and retweet behavior. In 45th Hawaii International Conference on System Sciences, (pp. 3500–3509).

Wilson, T., Wiebe, J., & Hoffmann, P. (2005). Recognizing contextual polarity in phrase-level sentiment analysis. In Proceedings of the Conference on Human Language Technology and Empirical Methods in Natural Language Processing (pp. 347–354).



How to Cite

Saeed, S., & Zahra, D. T. (2023). Sentiment and Emotion Analysis of Shehbaz Sharif’s Tweets: A Time-Agnostic Computational Approach. Pakistan Journal of Language Studies, 7(1), 107-124. Retrieved from //