Skip to main content

Detecting Sarcasm in Text

  • Conference paper
  • First Online:
Intelligent Systems Design and Applications (ISDA 2018 2018)

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 941))

Abstract

Sarcasm is a nuanced form of speech extensively employed in various online platforms such as social networks, micro-blogs etc. and sarcasm detection refers to predicting whether the text is sarcastic or not. Detecting sarcasm in text is among the major issues facing sentiment analysis. In the last decade, researchers have been working rigorously on sarcasm detection so as to amend the performance of automatic sentiment analysis of data. In this paper, a supervised machine learning (ML) approach, which learns from different categories of features and their combinations, is presented. These feature sets are employed to classify instances as sarcastic and not-sarcastic using different classifiers. In particular, the impact of sarcastic patterns based on POS tags has been investigated and the results show that they are not useful as a feature set for detecting sarcasm as compared to content words and function words. Also, the Naïve Bayes classifier outperforms all other classifiers used.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Du, J., Xu, H., Huang, X.: Box office prediction based on microblog. Expert Syst. Appl. 41(4), 1680–1689 (2014)

    Article  Google Scholar 

  2. Coussement, K., Van den Poel, D.: Improving customer attrition prediction by integrating emotions from client/company interaction emails and evaluating multiple classifiers. Expert Syst. Appl. 36(3), 6127–6134 (2009)

    Article  Google Scholar 

  3. Li, Y.-M., Shiu, Y.-L.: A diffusion mechanism for social advertising over microblogs. Decis. Support Syst. 54(1), 9–22 (2012)

    Article  Google Scholar 

  4. Ramteke, J., Shah, S., Godhia, D., Shaikh, A.: Election result prediction using Twitter sentiment analysis. In: International Conference on Inventive Computation Technologies (ICICT), vol. 1, pp. 1–5. IEEE (2016)

    Google Scholar 

  5. Oraby, S., Harrison, V., Reed, L., Hernandez, E., Riloff, E., Walker, M.: Creating and characterizing a diverse corpus of sarcasm in dialogue. arXiv preprint arXiv:1709.05404 (2017)

  6. Tsur, O., Davidov, D., Rappoport, A.: ICWSM-a great catchy name: semi-supervised recognition of sarcastic sentences in online product reviews. In: ICWSM, pp. 162–169 (2010)

    Google Scholar 

  7. González-Ibánez, R., Muresan, S., Wacholder, N.: Identifying sarcasm in Twitter: a closer look. In: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies: Short Papers-Volume 2, pp. 581–586. Association for Computational Linguistics (2011)

    Google Scholar 

  8. Riloff, E., Qadir, A., Surve, P., De Silva, L., Gilbert, N., Huang, R.: Sarcasm as contrast between a positive sentiment and negative situation. In: Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pp. 704–714 (2013)

    Google Scholar 

  9. Liebrecht, C.C., Kunneman, F.A., van Den Bosch, A.P.J.: The perfect solution for detecting sarcasm in tweets# not (2013)

    Google Scholar 

  10. Littlestone, N.: Learning quickly when irrelevant attributes abound: a new linear-threshold algorithm. Mach. Learn. 2(4), 285–318 (1988)

    Google Scholar 

  11. Justo, R., Corcoran, T., Lukin, S.M., Walker, M., Torres, M.I.: Extracting relevant knowledge for the detection of sarcasm and nastiness in the social web. Knowl.-Based Syst. 69, 124–133 (2014)

    Article  Google Scholar 

  12. Maynard, D.G., Greenwood, M.A.: Who cares about sarcastic tweets? Investigating the impact of sarcasm on sentiment analysis. In: LREC 2014 Proceedings. ELRA (2014)

    Google Scholar 

  13. Khattri, A., Joshi, A., Bhattacharyya, P., Carman, M.: Your sentiment precedes you: using an author’s historical tweets to predict sarcasm. In: Proceedings of the 6th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, pp. 25–30 (2015)

    Google Scholar 

  14. Rajadesingan, A., Zafarani, R., Liu, H.: Sarcasm detection on twitter: a behavioral modeling approach. In: Proceedings of the Eighth ACM International Conference on Web Search and Data Mining, pp. 97–106. ACM (2015)

    Google Scholar 

  15. Bouazizi, M., Ohtsuki, T.O.: A pattern-based approach for sarcasm detection on Twitter. IEEE Access 4, 5477–5488 (2016)

    Article  Google Scholar 

  16. Mukherjee, S., Bala, P.K.: Sarcasm detection in microblogs using Naïve Bayes and fuzzy clustering. Technol. Soc. 48, 19–27 (2017)

    Article  Google Scholar 

  17. Schürer, S.C., Muskal, S.M.: Kinome-wide activity modeling from diverse public high-quality data sets. J. Chem. Inf. Model. 53(1), 27–38 (2013)

    Article  Google Scholar 

  18. Kohavi, R.: A study of cross-validation and bootstrap for accuracy estimation and model selection. In: IJCAI, vol. 14, no. 2, pp. 1137–1145 (1995)

    Google Scholar 

  19. Church, K.W.: A stochastic parts program and noun phrase parser for unrestricted text. In: Proceedings of the Second Conference on Applied Natural Language Processing, pp. 136–143. Association for Computational Linguistics (1988)

    Google Scholar 

  20. Biber, D., Johansson, S., Leech, G., Conrad, S., Finegan, E.: Longman grammar of spoken and written English, pp. 89–110 (1999)

    Google Scholar 

  21. Murphy, K.P.: Naive Bayes classifiers. University of British Columbia, vol. 18 (2006)

    Google Scholar 

  22. Hsu, C.-W., Chang, C.-C., Lin, C.-J.: A practical guide to support vector classification, pp. 1–16 (2003)

    Google Scholar 

  23. Breiman, L.: Random forests. Mach. Learn. 45(1), 5–32 (2001)

    Article  Google Scholar 

  24. Islam, M.J., Wu, Q.J., Ahmadi, M., Sid-Ahmed, M.A.: Investigating the performance of naive-bayes classifiers and k-nearest neighbor classifiers. In: International Conference on Convergence Information Technology, pp. 1541–1546. IEEE (2007)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sakshi Thakur .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Thakur, S., Singh, S., Singh, M. (2020). Detecting Sarcasm in Text. In: Abraham, A., Cherukuri, A., Melin, P., Gandhi, N. (eds) Intelligent Systems Design and Applications. ISDA 2018 2018. Advances in Intelligent Systems and Computing, vol 941. Springer, Cham. https://doi.org/10.1007/978-3-030-16660-1_97

Download citation

Publish with us

Policies and ethics