Vinnie Garcia

When “thanks” doesn’t mean thanks

In The Social Reckoning, Jeff Horwitz asks why the comments on Zuckerberg’s speech look so positive. The software “can’t detect sarcasm yet,” Frances Haugen tells him.

How sentiment analysis works

Say you have a hundred customer reviews. Which ones sound happy? Which are complaints? Sentiment analysis gives you a first pass at sorting them. It estimates the attitude expressed in the text, not how the writer actually feels.

Decide what to score

A tool can score a sentence, a whole review, or what the review says about one thing, like the food. “The food was great. The service was terrible.” contains both praise and a complaint. One label for the whole review can hide that. Splitting it helps here, but keep the original text: “That was awful” makes more sense if you know what “that” refers to.

Turn the text into a label

VADER uses a list of words with scores and rules for things like “not” and exclamation marks. It combines the clues into a number from −1 to +1 and uses cutoffs to call it negative, neutral, or positive. The number isn’t the probability that the label is right.

Another approach is to train a model on examples people have labeled. Instead of assigning “great” the same starting value every time, a model can learn that “great,” “not great,” and “great for the price” mean different things. What it learns depends on the examples it sees. A model trained on movie reviews might not read a support chat the same way a customer would.

Why “thanks” fools this tool

In the Sincere and Sarcastic examples, “thanks” is the only word VADER gives a sentiment score. It has no rule for the phrase “thanks for absolutely nothing,” where the apparent praise clashes with what actually happened. That’s why both comments score +0.44. Take out “thanks” and the sarcastic comment drops to zero. The complaint is still there; the score doesn’t see it.

Give the model something to compare

Read “Great, thanks” after “We fixed it.” Now read it after “We lost your order again.” The reply is identical, but the second conversation gives you a reason to read it as sarcasm. A model trained on examples of sarcasm can learn that mismatch, and the previous message can help. People can still disagree about the tone, so let a tool say “unclear.”

If you use sentiment to decide which customer comments to read first, test it on a sample from your own inbox, including jokes and mixed feedback. Read some of the comments it labeled positive or neutral, too. Those are where complaints can get buried.

The opening is from a dramatization. Reporting at the time found that more criticism was visible after viewers could sort the comments by recency. It doesn’t establish the film’s explanation about sarcasm.