Sentiment Analysis of Imran Khan’s Tweets


  • Sadia Saeed Air University
  • Tehseen Zahra Air University
  • Asim Ali Fayyaz Air University


Sentiment analysis, tweets, opinion, polarity, Imran Khan


In the recent past, sentiment analysis has been an area of interests of psychologists, sociologists, neurologists, computer scientists, and linguists including corpus linguists and computational linguists. Interdisciplinary approaches to researching various issues especially the analysis of social media websites such as Facebook, Twitter, and Instagram are becoming popular nowadays. The availability of data on social media has made it easier to analyse the opinion or sentiments of its users. Analysis of these sentiments could reveal the face of users and it could help in various decision-making processes. Sentiment analysis is a system of knowing polarity (positive, negative, and neutral) in discourse. Moreover, sentiments can enable and disable certain functions of discourse and can divert the attention of the audience from important to a less important issue or otherwise, hence, there is a need to analyse the sentiments. In this research, sentiments (Polarity) of Imran Khan’s tweets are analysed with the help of R studio. Data for this study is collected from Imran Khan’s one-year’s tweets, tweeted from 1st January 2018 to 20th November 2018. Later we saved the data in. csv files. The results of the polarity check revealed that he has used all three types of sentiments that is positive, negative, and neutral. However, he mostly used neutral or free polarity items (FPIs) that is 67.41% in his tweets. Among positive and negative polarity items the number of negative polarity items (NPIs) is higher that is 23.21% as compared to positive polarity items (PPIs) which are only 9.40%. The manual analysis of results revealed that only software is not enough and there is a need to check the accuracy of the results manually. The use of negative polarity/negative face reveals that he tries to be independent and autonomous in his decisions (Goffman, 1967). The use of positive polarity items shows he tries to show his positive face to others. Moreover, sentiment analysis demonstrates the presence of themes propagated through the use of various lexical items.


Al-Hajjar, D., & Syed, A. Z. (2015). Applying sentiment and emotion analysis on brand tweets for digital marketing. In 2015 IEEE Jordan Conference on Applied Electrical Engineering and Computing Technologies (AEECT), 1-6. doi:10.1109/AEECT.2015.7360592

Asghar, M. Z., Khan, A., Khan, F., & Kundi, F. M. (2018). RIFT: A rule induction framework for twitter sentiment analysis. Arabian Journal for Science and Engineering, 43(2), 857-877. Retrieved from https://link.

Bharath, R. B., Prabhakaran, R., Saravanan, N., & Vinoth, M. (2018). Twitter sentiment analysis. International Journal of Pure and Applied Mathematics, 119(10), 1785-1791. Retrieved from 2018-119-10/articles/10b/61.pdf

Bulmer, M., Bohnke, J. R., & Lewis, G. J. (2017). Predicting moral sentiment towards physician-assisted suicide: The role of religion, conservatism, authoritarianism, and Big Five personality. Personality and Individual Differences, 105, 244-251. doi:10.1016/j.paid.2016.09. 034

Bhatia, R., Garg, P., & Johari, R. (2018). Corpus based twitter sentiment analysis. In Proceedings of 3rd International Conference on Internet of Things and Connected Technologies (ICIoTCT), 743-748. doi:10.2139/ ssrn.3170323

Brown, P., & Levinson, S. C. (1994). Politeness: Some universals in language usage. London: Cambridge University Press.

Ceron, A., Curini, L., Iacus, S. M., & Porro, G. (2014). Every tweet counts? How sentiment analysis of social media can improve our knowledge of citizens’ political preferences with an application to Italy and France. New Media & Society, 16(2), 340-358.

Galasi?ski, D. (2017). On ‘neutral language' [Blog Post]. Retrieved from

Ghiassi, M., & Lee, S. (2018). A domain transferable lexicon set for Twitter sentiment analysis using a supervised machine learning approach. Expert Systems with Applications, 106, 197-216. doi:10.1016/j.eswa.2018.04.006

Goffman, E. (1967). Interaction ritual: Essays on face-to-face behavior. Garden City, NY: Doubleday.

Hartelius, E. J. (2017). Sentimentalism in online deliberation: Assessing the generic liability of immigration discourses. In Emerging genres in new media environments (pp. 225-242). Basel, Switzerland: Springer International Publishing AG.

Hatzivassiloglou, H., & McKeown, K. R. (1997). Predicting the semantic orientation of adjectives. In ACL '98/EACL '98 Proceedings of the 35th Annual Meeting of the Association for Computational Linguistics and Eighth Conference of the European Chapter of the Association for Computational Linguistics, 174-181. Retrieved from anthology/P97-1023

Jawale, M. A., Kyatanavar, D. N., & Pawar, A. B. (2013). Design of automated sentiment or opinion discovery system to enhance its performance. In Proceedings of International Conference on Advances in Information Technology and Mobile Communication 2013 (AIM 2013) and in ACEEE 2013 Digital Library, 48-53. doi: 1& type=pdf

Kagan, V., Stevens, A., & Subrahmanian, V. S. (2015). Using twitter sentiment to forecast the 2013 Pakistani election and the 2014 Indian election. IEEE Intelligent Systems, 30(1), 2-5.

Liu, B. (2010). Sentiment analysis and subjectivity. In N. In-durkhya & F. Damerau (Eds.), Handbook of natural language processing (2nd ed.; pp. 627-666). Boca Raton: Chapman & Hall/CRC.

Liu, K. L., Li, W. J., & Guo, M. (2012). Emoticon smoothed language models for twitter sentiment analysis. In Proceedings of the AAAI Conference on Artificial Intelligence, 26(1). Retrieved from https:// article/view/8353

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

Pang, B., & Lee, L. (2008). Opinion mining and sentiment analysis. Foundations and Trends in Information Retrieval, 2(1-2), 1-135.

Pawar, A. B., Jawale, M. A., & Kyatanavar, D. N. (2016). Fundamentals of sentiment analysis: Concepts and methodology. In W. Pedrycz & S. M. Chen (Eds.), Sentiment analysis and ontology engineering: An environment of computational intelligence (pp. 25-48). Cham: Springer International Publishing. doi:10.1007/978-3-319-30319-2_2

Poecze, F., Ebster, C., & Strauss, C. (2018). Social media metrics and sentiment analysis to evaluate the effectiveness of social media posts. Procedia Computer Science, 130, 660-666. doi:10.1016/j.procs.2018.0 4.117

Razzaq, M. A., Qamar, A. M., & Bilal, H. S. M. (2014). Prediction and analysis of Pakistan election 2013 based on sentiment analysis. 2014 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM 2014), 700-703. IEEE.

Ruben, B. D. (2018). Interdisciplinary approaches to human communication. New York: Routledge.

Shabbir, W. (2017, May 19). Imran Khan may be blunt but he speaks his heart out. That’s why I support him. The Nation. Retrieved from

Shaheen, S., El-Hajj, W., Hajj, H., & Elbassuoni, S. (2014). Emotion recognition from text based on automatically generated rules. In 2014 IEEE International Conference on Data Mining Workshop, 383-392. doi: 10.1109/ICDMW.2014.80

Sharma, N., Pabreja, R., Yaqub, U., Atluri, V., Chun, S., & Vaidya, J. (2018). Web-based application for sentiment analysis of live tweets. In Proceedings of the 19th Annual International Conference on Digital Government Research: Governance in the Data Age, 1-2. doi:10.1145/ 3209281.3209402

Vij, A., & Pruthi, J. (2018). An automated psychometric analyzer based on sentiment analysis and emotion recognition for healthcare. Procedia Computer Science, 132, 1184-1191. doi:10. 1016/j.procs.2018.05.033

Wang, Y., Kim, K., Lee, B., & Youn, H. Y. (2018). Word clustering based on POS feature for efficient twitter sentiment analysis. Human-Centric Computing and Information Sciences, 8(1), 17. doi:10.1186/s13673-018-0140-y

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, 347-354. Retrieved from https://www.

Yu, H., & Hatzivassiloglou, V. (2003). Towards answering opinion questions: Separating facts from opinions and identifying the polarity of opinion sentences. In Proceedings of the 2003 Conference on Empirical Methods in Natural Language Processing, 129-136. Retrieved from

Zhou, X., Tao, X., Yong, J., & Yang, Z. (2013). Sentiment analysis on tweets for social events. In Proceedings of the 2013 IEEE 17th International Conference on Computer Supported Cooperative Work in Design (CSCWD), 557-562. doi:10.1109/CSCWD.2013.6581022