Elamur Research⌕
☰
home / papers / 2005 / Making Computers Laugh: Investigations in Automatic Humor Recognition

Making Computers Laugh: Investigations in Automatic Humor Recognition

Paper · 2005 · Rada Mihalcea and Carlo Strapparava

Summary

The paper tests whether standard text classification can tell humorous sentences from serious ones. It focuses on one-liners: very short jokes whose comic effect sits entirely in a single sentence. The authors built about 16,000 one-liners by bootstrapping from the Web, starting with only ten seed jokes. For negative examples they used three sets of short sentences chosen to resemble jokes in length and style: Reuters news titles, proverbs, and BNC sentences retrieved for their content similarity to each joke. They compared three kinds of features. The first were humor-oriented stylistic cues: alliteration, antonymy and slang. The second were content-based features in an ordinary text-classification setup, and the third combined both in a stacked learner. On balanced data, accuracy ranged from 79.15% (One-liners/BNC) to 96.95% (One-liners/Reuters), always clearly above the baselines. Learning curves level off after roughly 10,000 positive examples. The authors read this as a sign that better features, not more data, are the way forward. The work is presented as the first evidence that automatic classification can handle humor recognition.

Key points

  • Data collection: two bootstrapping rounds from 10 seed one-liners yielded about 24,000 candidates.
    • Removing near-duplicates with a longest-common-subsequence similarity measure left about 16,000.
    • A manual check of 200 random items found roughly 9% noise.
  • Negative sets: Reuters titles (one year of newswire, 1996–1997), an online proverb collection, and BNC sentences.
    • The BNC sentences were retrieved with tf.idf and cosine similarity in the Smart system.
    • All negatives were limited to single sentences of about 10–15 words.
  • Stylistic features: these were alliteration, antonymy and slang, with alliteration detected through an index over the CMU pronunciation dictionary.
    • Content features were used with classifiers including Naïve Bayes.
    • The two feature types were also merged via stacking.
  • Skewed data (75% negative / 25% humorous): all methods still beat the 75% baseline.
    • Content features with Naïve Bayes reached 96.19% (Reuters), 81.56% (BNC) and 87.86% (Proverbs).
    • Stylistic features alone reached 87.49%, 77.62% and 76.20%.
  • Learning curves: gains stop around 60% of the data. With BNC negatives the curve even dips slightly at the end, which the authors attribute to noise.

Interesting ideas

  • I1. Bootstrapping with two constraints. The collector accepts a page only if its URL contains a theme keyword. It then harvests only sibling items in the same HTML list as a known example. This cheap, genre-aware scraping pattern could gather proverbs, slogans or headlines for low-resource languages such as Ukrainian.
  • I2. Hard negatives by design. The negatives match the positives in length, register and even topic, as with the BNC sentences retrieved per joke. This stops the classifier from relying on trivial surface cues, and the same approach suits any style or genre detection task.
  • I3. Several negative sets as a difficulty scale. Evaluating against easy (news titles) and hard (topically similar plain sentences) negatives shows how much of the result depends on the contrast class, not only on the target phenomenon.
  • I4. Learning curves as a planning tool. Plotting accuracy against training size helps decide whether to invest in more data or in richer features. A plateau points toward features, and a late drop can expose label noise.
  • I5. Linguistic devices as explicit features. Simple, interpretable signals, such as alliteration from a pronunciation dictionary or antonym pairs from a lexical resource, provide a transparent baseline. They can also be stacked with bag-of-words models.

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

 Institutions

Cite

Cite as Rada Mihalcea and Carlo Strapparava. 2005. Making Computers Laugh: Investigations in Automatic Humor Recognition. Proceedings of Human Language Technology Conference and Conference on Empirical Methods in Natural Language Processing.

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

@inproceedings{mihalcea2005making,
  title = {{Making Computers Laugh: Investigations in Automatic Humor Recognition}},
  author = {Rada Mihalcea and Carlo Strapparava},
  booktitle = {Proceedings of Human Language Technology Conference and Conference on Empirical Methods in Natural Language Processing},
  year = {2005},
  url = {https://aclanthology.org/H05-1067/}
}

References

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

  1. S. Attardo. 1994. Linguistic Theory of Humor. Mouton de Gruyter, Berlin. find
  2. K. Binsted and G. Ritchie. 1997. Computational rules for punning riddles. Humor, 10(1). find
  3. C. Bucaria. 2004. Lexical and syntactic ambiguity as a source of humor. Humor, 17(3). find
  4. W. Daelemans, J. Zavrel, K. van der Sloot, and A. van den Bosch. 2001. Timbl: Tilburg memory based learner, version 4.0, reference guide. Technical report, University of Antwerp. find
  5. S. Freud. 1905. Der Witz und Seine Beziehung zum Unbewussten. Deutike, Vienna. find
  6. T. Joachims. 1998. Text categorization with Support Vector Machines: learning with many relevant features. In Proceedings of the European Conference on Machine Learning. our card
  7. D.E. Knuth. 1993. The Stanford Graph Base: A Platform for combinatorial computing. ACM Press. find
  8. D. Lewis, Y. Yang, T. Rose, and F. Li. 2004. RCV1: A new benchmark collection for text categorization research. The Journal of Machine Learning Research, 5:361–397. our card
  9. A. McCallum and K. Nigam. 1998. A comparison of event models for Naive Bayes text classification. In Proceedings of AAAI-98 Workshop on Learning for Text Categorization. find
  10. G. Miller. 1995. Wordnet: A lexical database. Communication of the ACM, 38(11):39–41. find
  11. A. Nijholt, O. Stock, A. Dix, and J. Morkes, editors. 2003. Proceedings of CHI-2003 workshop: Humor Modeling in the Interface, Fort Lauderdale, Florida. find
  12. W. Ruch. 2002. Computers with a personality? lessons to be learned from studies of the psychology of humor. In Proceedings of the The April Fools Day Workshop on Computational Humour. find
  13. O. Stock and C. Strapparava. 2003. Getting serious about the development of computational humour. In Proceedings of the 8 th International Joint Conference on Artificial Intelligence (IJCAI-03), Acapulco, Mexico. find
  14. O. Stock, C. Strapparava, and A. Nijholt, editors. 2002. Proceedings of the The April Fools Day Workshop on Computational Humour, Trento. find
  15. J. Taylor and L. Mazlack. 2004. Computationally recognizing wordplay in jokes. In Proceedings of CogSci 2004, Chicago. find

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/mihalcea-2005-making-computers-laugh-investigations-automatic/