---
title: "Your Sentiment Precedes You — Khattri 2015"
description: "Some sarcastic tweets cannot be recognized from their wording alone."
authors: ["Anupam Khattri", "Aditya Joshi", "Pushpak Bhattacharyya", "Mark Carman"]
year: 2015
venue: "Proceedings of the 6th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis"
source: "https://aclanthology.org/W15-2905/"
doi: "10.18653/v1/w15-2905"
licence: "CC BY-NC-SA 3.0 (ACL Anthology, before 2016)"
licence_url: "https://creativecommons.org/licenses/by-nc-sa/3.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/papers/khattri-2015-your-sentiment-precedes-you-author/"
---
[Elamur Research](https://md.research.elamur.ai/) · [this page in HTML](https://research.elamur.ai/free/papers/khattri-2015-your-sentiment-precedes-you-author/)

[home](https://md.research.elamur.ai/) / [papers](https://md.research.elamur.ai/free/papers/) / [2015](https://md.research.elamur.ai/free/papers/2015/page/2/) / Your Sentiment Precedes You: Using an author's historical tweets to predict sarcasm

# Your Sentiment Precedes You: Using an author's historical tweets to predict sarcasm

**Authors:** Anupam Khattri, [Aditya Joshi](https://md.research.elamur.ai/free/authors/aditya-joshi/), [Pushpak Bhattacharyya](https://md.research.elamur.ai/free/authors/pushpak-bhattacharyya/), [Mark Carman](https://md.research.elamur.ai/free/authors/mark-carman/) · **Year:** 2015 · **Venue:** Proceedings of the 6th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

**Links:** [Publisher's page](https://aclanthology.org/W15-2905/) · [PDF](https://aclanthology.org/W15-2905.pdf) · [DOI 10.18653/v1/w15-2905](https://doi.org/10.18653/v1/w15-2905) · [OpenAlex](https://openalex.org/W2250247764)

**Citations:** 93 citations (openalex-snapshot · 2026-10-14) · [21](#cited-by) in our library, of the 140673 papers whose bibliographies we read

## Summary
Some sarcastic tweets cannot be recognized from their wording alone. Whether "I love spending four hours cooking" is ironic depends on the author's real attitude. Khattri et al. address this by bringing in the author's own Twitter timeline as extra context.

Their rule-based system has two parts:
- **Contrast-based predictor:** looks for opposing sentiment inside the tweet, following Riloff et al. (2013).
- **Historical tweet-based predictor:** extracts NNP sequences as target phrases, retrieves the author's earlier tweets that mention them, and takes a majority vote of their sentiment. A conflict between the current tweet's sentiment and that past opinion signals sarcasm.

Four integrators combine the two predictors, and each setup is tested with two sentiment lexicons. On Riloff et al.'s annotated test corpus, the Relaxed-AND integrator reaches an F-score of 0.882, far above the 0.51 benchmark. The authors present this as the first quantitative evidence that an author's past writing helps detect sarcasm. The idea also carries over to forums and review sites.

## Key points
- **Test data:** Riloff et al. (2013) corpus with 2278 retrievable tweets, of which 506 are sarcastic. Timelines could not be obtained for 248 of 2273 authors, because accounts were private, renamed, or deactivated. The Twitter API returns only the latest 3500 tweets per user.
- **Implicit sentiment phrases:** 445 phrases, mined as 3- to 10-grams that occur at least three times in 8000 #sarcasm tweets. The in-house rule-based sentiment classifier scores 58.49% accuracy on Sentiment140.
- **Integrators:** Only historical tweet-based, OR, AND, and Relaxed-AND. Relaxed-AND requires both predictors to agree, but falls back on the contrast predictor when the author has no relevant history.
- **Lexicons:** L1 from Pang and Lee (2004), used in setup SD1, and L2 from Mohammad and Turney (2013), used in setup SD2.
- **Results (F-score):**

  | Configuration | SD1 | SD2 |
  |---|---|---|
  | History alone | ≈0.50 | ≈0.50 |
  | AND | 0.617 | 0.627 |
  | Relaxed-AND | 0.826 | 0.882 |

  Relaxed-AND also has positive-class precision of 0.777 (SD1) and 0.811 (SD2). The method assumes that past tweets express the author's sincere sentiment.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

Fields: [Linguistics & languages](https://md.research.elamur.ai/free/shelves/linguistics/)

## Cited by

Cited by

21 papers of our library cite it (of the 140673 whose bibliographies we read); 11 of them have a page here, 10 not yet.

- [Linguistic Features in Automatic Sarcasm Detection](https://md.research.elamur.ai/free/papers/ducret-2020-linguistic-features-automatic-sarcasm-detection/)
- [Magnets for Sarcasm: Making Sarcasm Detection Timely, Contextual and Very Personal](https://md.research.elamur.ai/free/papers/ghosh-2017-magnets-sarcasm-making-sarcasm-detection/)
- [Sarcasm Analysis Using Conversation Context](https://md.research.elamur.ai/free/papers/ghosh-2018-sarcasm-analysis-conversation-context/)
- [A Report on the 2020 Sarcasm Detection Shared Task](https://md.research.elamur.ai/free/papers/ghosh-2020-report-2020-sarcasm-detection-shared/)
- [CASCADE: Contextual Sarcasm Detection in Online Discussion Forums](https://md.research.elamur.ai/free/papers/hazarika-2018-cascade-contextual-sarcasm-detection-online/)
- [We Usually Don't Like Going to the Dentist: Using Common Sense to Detect Irony on Twitter](https://md.research.elamur.ai/free/papers/hee-2018-we-usually-don-t-like/)
- [Are Word Embedding-based Features Useful for Sarcasm Detection?](https://md.research.elamur.ai/free/papers/joshi-2016-are-word-embedding-based-features/)
- [Automatic Sarcasm Detection: A Survey](https://md.research.elamur.ai/free/papers/joshi-2016-automatic-sarcasm-detection-survey/)
- [Harnessing Sequence Labeling for Sarcasm Detection in Dialogue from TV Series ‘Friends'](https://md.research.elamur.ai/free/papers/joshi-2016-harnessing-sequence-labeling-sarcasm-detection/)
- [Sarcasm Target Identification: Dataset and An Introductory Approach](https://md.research.elamur.ai/free/papers/joshi-2018-sarcasm-target-identification-dataset-introductory/)
- [Detecting Sarcasm in Multimodal Social Platforms](https://md.research.elamur.ai/free/papers/schifanella-2016-detecting-sarcasm-multimodal-social-platforms/)

## Cite

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{khattri2015your,
  title = {{Your Sentiment Precedes You: Using an author's historical tweets to predict sarcasm}},
  author = {Khattri, Anupam and Joshi, Aditya and Bhattacharyya, Pushpak and Carman, Mark},
  booktitle = {Proceedings of the 6th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis},
  year = {2015},
  doi = {10.18653/v1/w15-2905},
  url = {https://doi.org/10.18653/v1/w15-2905}
}
```

- [← previous YAGO3: A Knowledge Base from Multilingual Wikipedias](https://md.research.elamur.ai/free/papers/mahdisoltani-2015-yago3-knowledge-base-multilingual-wikipedias/)
- [↑ back to papers of 2015](https://md.research.elamur.ai/free/papers/2015/page/2/)

## References

12 references, 6 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Francesco Barbieri, Horacio Saggion, and Francesco Ronzano. 2014. Modelling sarcasm in twitter, a novel approach. ACL 2014, page 50. [find](https://scholar.google.com/scholar?q=Francesco+Barbieri%2C+Horacio+Saggion%2C+and+Francesco+Ronzano%2E+2014%2E+Modelling+sarcasm+in+twitter%2C+a+novel+approach%2E+ACL+2014%2C+page+50%2E) [our card](https://md.research.elamur.ai/free/papers/barbieri-2014-modelling-sarcasm-twitter-novel-approach/)
2. Paula Carvalho, Luı́s Sarmento, Mário J Silva, and Eugénio de Oliveira. 2009. Clues for detecting irony in user-generated contents: oh...!! it’s so easy;-). In Proceedings of the 1st international CIKM workshop on Topic-sentiment analysis for mass opinion, pages 53–56. ACM. [find](https://scholar.google.com/scholar?q=Paula+Carvalho%2C+Lu%C4%B1%CC%81s+Sarmento%2C+Ma%CC%81rio+J+Silva%2C+and+Euge%CC%81nio+de+Oliveira%2E+2009%2E+Clues+for+detecting+irony+in+user%2Dgenerated+contents%3A+oh%2E%2E%2E%21%21+it%E2%80%99s+so+easy%3B%2D%29%2E+In+Proceedings+of+the+1st+international+C)
3. Dmitry Davidov, Oren Tsur, and Ari Rappoport. 2010. Semi-supervised recognition of sarcastic sentences in twitter and amazon. In Proceedings of the Fourteenth Conference on Computational Natural Language Learning, pages 107–116. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Dmitry+Davidov%2C+Oren+Tsur%2C+and+Ari+Rappoport%2E+2010%2E+Semi%2Dsupervised+recognition+of+sarcastic+sentences+in+twitter+and+amazon%2E+In+Proceedings+of+the+Fourteenth+Conference+on+Computational+Natural+Langu) [our card](https://md.research.elamur.ai/free/papers/davidov-2010-semi-supervised-recognition-sarcasm-twitter/)
4. Roberto Gonzalez-Ibanez, Smaranda Muresan, and Nina Wacholder. 2011. 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, pages 581–586. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Roberto+Gonzalez%2DIbanez%2C+Smaranda+Muresan%2C+and+Nina+Wacholder%2E+2011%2E+Identifying+sarcasm+in+twitter%3A+a+closer+look%2E+In+Proceedings+of+the+49th+Annual+Meeting+of+the+Association+for+Computational+Lingu) [our card](https://md.research.elamur.ai/free/papers/ibanez-2011-identifying-sarcasm-twitter-closer-look/)
5. Aditya Joshi, Vinita Sharma, and Pushpak Bhattacharyya. 2015. Harnessing context incongruity for sarcasm detection. In ACL-IJCNLP 2015. [find](https://scholar.google.com/scholar?q=Aditya+Joshi%2C+Vinita+Sharma%2C+and+Pushpak+Bhattacharyya%2E+2015%2E+Harnessing+context+incongruity+for+sarcasm+detection%2E+In+ACL%2DIJCNLP+2015%2E) [our card](https://md.research.elamur.ai/free/papers/joshi-2015-harnessing-context-incongruity-sarcasm-detection/)
6. Gregory Malecha and Ian Smith. 2010. Maximum entropy part-of-speech tagging in nltk. unpublished course-related report. [find](https://scholar.google.com/scholar?q=Gregory+Malecha+and+Ian+Smith%2E+2010%2E+Maximum+entropy+part%2Dof%2Dspeech+tagging+in+nltk%2E+unpublished+course%2Drelated+report%2E)
7. Diana Maynard and Mark A Greenwood. 2014. Who cares about sarcastic tweets? investigating the impact of sarcasm on sentiment analysis. In Proceedings of LREC. [find](https://scholar.google.com/scholar?q=Diana+Maynard+and+Mark+A+Greenwood%2E+2014%2E+Who+cares+about+sarcastic+tweets%3F+investigating+the+impact+of+sarcasm+on+sentiment+analysis%2E+In+Proceedings+of+LREC%2E) [our card](https://md.research.elamur.ai/free/papers/maynard-2014-who-cares-about-sarcastic-tweets/)
8. Saif M. Mohammad and Peter D. Turney. 2013. Crowdsourcing a word-emotion association lexicon. 29(3):436–465. [↗](https://doi.org/10.1111/j.1467-8640.2012.00460.x)
9. Bo Pang and Lillian Lee. 2004. A sentimental education: Sentiment analysis using subjectivity summarization based on minimum cuts. In Proceedings of the 42nd annual meeting on Association for Computational Linguistics, page 271. Association for Computational Linguistics. [↗](https://doi.org/10.48550/arxiv.cs/0409058)
10. Ellen Riloff, Ashequl Qadir, Prafulla Surve, Lalindra De Silva, Nathan Gilbert, and Ruihong Huang. 2013. Sarcasm as contrast between a positive sentiment and negative situation. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 704–714. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Ellen+Riloff%2C+Ashequl+Qadir%2C+Prafulla+Surve%2C+Lalindra+De+Silva%2C+Nathan+Gilbert%2C+and+Ruihong+Huang%2E+2013%2E+Sarcasm+as+contrast+between+a+positive+sentiment+and+negative+situation%2E+In+Proceedings+of+the+) [our card](https://md.research.elamur.ai/free/papers/prag-2013-riloff-sarcasm-as-contrast-between-positive/)
11. Oren Tsur, Dmitry Davidov, and Ari Rappoport. 2010. Icwsm-a great catchy name: Semi-supervised recognition of sarcastic sentences in online product reviews. In ICWSM. [find](https://scholar.google.com/scholar?q=Oren+Tsur%2C+Dmitry+Davidov%2C+and+Ari+Rappoport%2E+2010%2E+Icwsm%2Da+great+catchy+name%3A+Semi%2Dsupervised+recognition+of+sarcastic+sentences+in+online+product+reviews%2E+In+ICWSM%2E)
12. Byron C Wallace, Do Kook Choe, and Eugene Charniak. 2015. Sparse, contextually informed models for irony detection: Exploiting user communities, entities and sentiment. In ACL-IJCNLP 2015. [find](https://scholar.google.com/scholar?q=Byron+C+Wallace%2C+Do+Kook+Choe%2C+and+Eugene+Charniak%2E+2015%2E+Sparse%2C+contextually+informed+models+for+irony+detection%3A+Exploiting+user+communities%2C+entities+and+sentiment%2E+In+ACL%2DIJCNLP+2015%2E)
