PeterK On July - 6 - 2010

Ah, sarcasm. It’s a guilty pleasure few of us would likely admit we enjoy, but have almost certainly employed at one point or another. It’s a verbal catharsis, a momentary sour-lemon bitterness, a passing scorn to ease a flare of frustration or score a stinging humorous point. In my work as a software developer, I’ve joked with friends about how useful a sarcasm HTML tag would be, akin to the tags that enable us to display online text as bold or italic or underlined. I’ve also heard people pine for a “sarcasm font,” some typeface that would effectively convey a healthy dose of verbal irony. There’s even a fully realized punctuation mark, the SarcMark, available for download and perfect for anyone concerned that the irony of their text might not come across sufficiently to a recipient. Just tack this little mark onto the end of your sarcastic sentences like a little dry wit flag and voila, no more embarrassing apologies for misunderstood missives!

Wanting some way to express sarcasm in text-based communication is not a new idea – while probably not limited to my professional community, it’s something for which many of us who work with computers and code seem to find ample need. We are, apparently, a pretty sardonic bunch. In fact, someone out in the Twitterverse proposed, with an unknown level of tongue-in-cheekedness, that the W3C (the international community responsible for developing Web standards) include a tag as part of the specification for the latest HTML standard. The W3C tweeted back with good humor, while basically informing this person they probably shouldn’t hold their breath.
Sarcasm is a form of indirect speech, a sophisticated construct where the real message gets conveyed implicitly through a combination of verbal and non-verbal cues. It often involves saying the opposite of what you really mean, and is usually easiest to recognize in face-to-face verbal dialogue. It’s a fairly ambiguous form of communication, but is, curiously, quite common in the nuance-poor online world. Comments on blog posts, customer reviews of products and other opinionated, user-generated content are often written with an acerbic tongue. But text is a tricky platform for implicit speech. It can be hard enough for humans to recognize sarcasm in text form, let alone computers, which is why it’s notable that an Israeli research team has actually developed a machine algorithm that can recognize sarcasm.
This novel sardonic bloodhound is called SASI, a Semi-supervised Algorithm for Sarcasm Identification. SASI can recognize sarcasm in online customer reviews with 77 percent accuracy. In developing the algorithm, the research team of Oren Tsur, Dmitry Davidov and Ari Rappoport looked at 66,000 product reviews on Amazon.com for 120 products including books, music players, digital cameras, camcorders, GPS devices, e-readers, game consoles, and mobile phones*. They had three people tag sentences for sarcasm to create a small seed of 80 sentences of annotated data. The team identified sarcastic patterns in the reviews, ranked the sentences by level of sarcasm and created a classification algorithm. They applied the algorithm against the seed set, which helped it learn words and patterns that distinguish sarcastic remarks. The algorithm achieved 81% recognition in the pattern acquisition phase.

Having put SASI through basic training, the team introduced it into an evaluation set of reviews containing completely new sarcastic sentences. Each sentence in this new set had again been classified for sarcasm by those three human annotators. Using what it had learned in the pattern acquisition phase, SASI achieved 77 percent precision for sniffing out sarcasm in the new data, and just over 81 percent pattern evaluation efficiency. Not perfect, but it’s easily better than some of my more literal friends.

So, does this matter? Do we care about a computer being able to recognize sarcasm? It’s actually pretty interesting from a commercial point of view — user preference studies suggest some users dislike sarcastic product reviews, finding them biased, while others actually prefer them. Therefore, the ability to identify sarcasm in reviews could improve the personalization of content ranking and recommendation systems. Review summarization and opinion-mining systems that attempt to aggregate public sentiment could also benefit if sarcasm could be identified and not included in the average scores, where its often opposite meaning would skew the results inappropriately.

Categories: Software, Technology

31 Responses to " Can computers detect sarcasm? "

  1. Exie Servey Exie Servey says:

    Thanks for sharing, I will bookmark and be back again

  2. Charlie Ritz Charlie Ritz says:

    I just placed this page on my facebook account. it is an interesting read for all.

  3. Great post, thanks for sharing. Keep up the fantastic work and keep em coming

  4. interesting blog. It would be great if you can provide more details about it. Thanks you

  5. Hello This is a great blog keep your good work and thank you for hvar in with me So nice to hear frome you.Thanks!

  6. PKW Teile PKW Teile says:

    Ich möchte Ihnen für diese Worte dank sagen!

  7. Very good blog post I love your site keep up the great posts

  8. go holiday go holiday says:

    We surfed everywhere to something regarding to this subject. Best regards

  9. How about…Ah… I dont’ remember what I want to say…

  10. Goto a URL shortening service like

  11. now see, this type of stuff really does not make sense

  12. Nice fill someone in on and this fill someone in on helped me alot in my college assignement. Gratefulness you on your information.

  13. Good day, significant posting. Are there any individual recognized websites regarding beauty pro’s or perhaps cosmetic salon services as we appear to dedicate my very existence researching and find myself in market blog web-sites. Your own website is pertinent in my opinion and I most certainly will obviously book mark your blog site. Sorry for being off subject, i guess I am somewhat frustrated.

  14. I have been following your blog for 3 days now and i should say 1 am starting to like your post. and now how do i subscribe to your blog?

  15. 在线代理 在线代理 says:

    这个第一次听说,又学到新知识了。

  16. Said these many, if adds on some splendid picture that to be able again to be more outstanding.

  17. What an inspiring post, many thanks. Hope to read more of your post.

  18. If you’re still on the fence: grab your favorite earphones, head down to a Best Buy and ask to plug them into a Zune then an iPod and see which one sounds better to you, and which interface makes you smile more. Then you’ll know which is right for you.

  19. I am the first time on this site and am really enthusiastic about and so many good articles. I think it¡¯s just very good.

  20. liked this blog post!

  21. Tolioppom Tolioppom says:

    Hello. And Bye.

  22. Hervorragende Inhalt. Vielen Dank für den Beitrag.

  23. Hey amazing blog, I noticed your internet site when doing some research on how to develop my web log. I was just now enquiring what spam software you use for comments mainly because I get tons on my website.

  24. Superb Blog, thanks for helping me with the fine Article. I think it is really a great topic to write about on my Website. Also here is some good information if needed: Cellex-C Skincare Products

  25. Zita Pultz Zita Pultz says:

    I trust you and yes it certainly gonna guide lots of people.

  26. Very good article, very much, but there is little requirement is to make your web site can be a good link, in order to promote together.

  27. This is wonderful. You have hit every point. I laughed out loud at some of them¡­.it is me. I needed a jolt. Thank you from my heart.

  28. tv fool tv fool says:

    Great detailed info, I just saved you on my google reader.

    Sent from my iPad 4G

  1. Another Title…

    I saw this really great post today….

Leave a Reply

About Us

We are a small firm that offers attention to detail, flexibility, and all-in-all provide much better customer service than the “big box” stores. Call us at 778-889-7383, send an e-mail to service@computermechanic.org, or simply click on our CONTACT page to see how we can provide you with cost-effective solutions!

Recent Comments