Research / Irony and sarcasm
Research line · 2007 – todayIrony and sarcasm: when what is said is not what is meant
«Great service, three hours waiting.» A system that reads word by word counts it as praise. Irony was the first wall I hit when measuring opinion, and we called it the sector's great battleground.
Why irony breaks the metrics
Irony says the opposite of what it means, and understanding it takes something that is not in the text: the tone of voice, the speaker's face, what is happening at that moment, what we know about who says it. People resolve it without thinking, because we have that cultural background. A machine that only reads the text scores precisely the most opinionated messages the wrong way round.
This line looks for where the information that gives irony away lives, and how much can be automated without losing human judgement where it is still needed.
Four stages
The articles are in Spanish.
-
2007 – 2009
The wall
Our first goal at Anpro21 was an algorithm that would understand the sentiment of what gets published. We were frustrated to find that sarcasm was, with the technology of the time, impossible for a machine to perceive, and that trying would take an incalculable investment of time and money. We set that part aside and launched the tone measure without it. The question stayed open.
-
2013
Irony, sarcasm and tone in measuring intangibles
With Brand Rain on the market, irony was the most visible error in any reputation measurement, and I came back to it to place it, alongside sarcasm and tone, within the measurement of intangibles.
-
2014
The audiovisual route: when text and image do not match
The idea was to look for irony where people see it, outside the text. We process images much faster than words, and the timbre of a voice, a facial expression or the objects around a message say a lot about its real tone. Brand Rain already processed text and audio with natural language processing, and images with pattern and object detection. The next step was to cross them: if the text is positive and the image has negative connotations, the system flags that the emotions do not match. That mismatch is irony's fingerprint.
In many cases a person stepped in, and machine learning took that correction on board as cultural background for the next case. The social context of the moment also counted, through accumulated historical material. This was the origin of Anpro21's video reputation project, with Ibermática, Verbio, CSA and the BISITE group at the University of Salamanca, supported by Plan Avanza. In that year's SEPLN paper we put it this way: audiovisual analysis as the road to irony and sarcasm.
The road to irony detection (2014) · Video reputation (2014) · SEPLN 2014 paper
-
2022 – today
Language models, and an idea that returns
In 2022 irony was still on the list of challenges for sentiment analysis. Today's language models read context far better, but the 2014 principle still holds: when two readings do not match, look twice. It comes back in two places. In disinformation, the coherence between text, image and emotion is a signal against synthetic video. And in FactCheck, one model decides whether each piece supports or rebuts a headline, and unclear pieces are reread by a second model before they count.
Measuring sentiment on social networks (2022) · Sora and disinformation (2024) · Disinformation line
Four ideas
Irony is an incoherence
Between text and voice, between word and image, between what is said and the moment. You detect it by looking for the mismatch, not the word.
One hundred per cent does not exist
Neither in 2014 nor today is all irony detected. The honest thing is to separate the messages that may contain it and say how often you got it right.
A person stays in the loop
In hard cases a person decides, and the system learns from that decision.
Context builds up
Understanding irony means knowing what was going on. Without accumulated history, the system has nothing to compare against.
Where it has been applied
Video reputation
Machine learning, speech recognition, parsing and semantic web.
Brand Rain
SaaS for measuring brand reputation and impact, for marketing and communication.
In the press: «Detecting irony, key to improving online reputation».