Elamur Research⌕
☰
home / papers / 2017 / Detecting Intentional Lexical Ambiguity in English Puns

Detecting Intentional Lexical Ambiguity in English Puns

Paper · 2017 · Elena Mikhalkova and Yuri Karyakin

Summary

The paper addresses automatic analysis of puns, where a single word deliberately carries two meanings at once. It covers two tasks: deciding whether a sentence is a pun, and locating the ambiguous target word. The authors assume every pun contains two overlapping groups of words, each pointing to a different abstract meaning. To find these groups, they map each word, and each collocation found through part-of-speech patterns, to the 34 Sections of Roget's Thesaurus. A sentence then becomes a 34-dimensional count vector. An SVM with an RBF kernel, trained on 2,480 collected puns against ordinary sentences drawn from NLTK corpora, aphorisms and proverbs, reaches an F-measure of about 0.73. For target location they compare rule-based methods: a sense-based method that uses the overlap of the two dominant Sections, and a positional "last word" rule. The positional rule often wins, possibly only because of how the dataset is built. The system, PunFields, took part in SemEval-2017 Task 7 and did best on pun classification. The work shows that a small, readable semantic feature space can capture deliberate ambiguity.

Key points

  • Resource: Roget's Thesaurus, used at the level of its 34 Sections (subdivisions of its six Classes). Thesaurus collocations such as idioms and proverbs are also looked up, using POS patterns like verb+particle and adjective+noun.
  • Data: 2,480 puns gathered from the Internet, contrasted with random 5–25-word sentences. Two contrast sets were used: "Mixed styles" (Brown, Reuters, Web) and "Belles lettres" (Gutenberg plus aphorisms and proverbs). Each pun was tested against one of these sets, split into halves for training and testing.
  • Classification: Scikit-learn SVM with an RBF kernel gave the best and most balanced results. Pun F-measure was about 0.73, and all models scored higher against the literary contrast set. The authors attribute part of this to puns sharing topics, for example recurring names such as John Deere. They probed this by sorting the vector values to remove which-Section information.
  • Location: the "last word" heuristic was strong for homographic puns. For heterographic puns it scored 0.39, against a SemEval baseline of 0.57. PunFields' current location precision is 0.5145 for homographic and 0.3879 for heterographic puns.
  • Other SemEval winners used different approaches: Duluth (disagreement among WordNet variants), Idiom Savant (a combination including word2vec), JU_CSE_NLP (HMM plus a dependency network), N-Hance (Wikipedia PMI peaks) and UWaterloo (11 location features).

Interesting ideas

  • I1. A sentence can be represented as counts over a few dozen coarse thesaurus categories, which yields a compact feature space where every dimension has a human-readable name.
  • I2. Deliberate ambiguity can be modelled as two dominant semantic fields, with the target word being the item that belongs to both (or, for heterographic puns, to only one).
  • I3. Multiword units are checked against a lexicon before senses are assigned, because the joke often lives in a fixed phrase like "change one's mind" rather than in a single word.
  • I4. Sorting feature values destroys category identity while keeping the distribution, which tests whether a classifier learned topic rather than structure.
  • I5. A trivial positional rule (the target sits near the end) proved hard to beat, which shows the value of always reporting dumb structural baselines.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (world): Project each sentence onto coarse WordNet or FrameNet domains to get an explainable topic profile, which can sanity-check entity and sense choices in the world of the text.
  • I2 (frames): The prag crate could flag puns and wordplay when a token's senses split across the two strongest domains of its context, feeding the irony and implicature layers.
  • I3 (tokens): Look up idioms and phrasal verbs as lexical units at lemma level, possibly triggered by UD patterns, so that later sense and frame assignment does not treat their parts literally.
  • I4 (learn): Add similar feature-scrambling negative controls to evaluations, revealing when a learned component relies on dataset topic leakage.
  • I5 (answer): When evaluating readers on fables or tests, compare against position-only baselines to confirm that answers come from understanding rather than layout cues.

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

Cite

Cite as Elena Mikhalkova and Yuri Karyakin. 2017. Detecting Intentional Lexical Ambiguity in English Puns. arXiv:1707.05468.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1707.05468 · arXiv 1707.05468

@misc{mikhalkova2017detecting,
  title = {{Detecting Intentional Lexical Ambiguity in English Puns}},
  author = {Elena Mikhalkova and Yuri Karyakin},
  year = {2017},
  doi = {10.48550/arxiv.1707.05468},
  eprint = {1707.05468},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1707.05468}
}

References

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

  1. Bird S., Klein E., Loper E. (2009), Natural Language Processing with Python: Analyzing Text with the Natural Language Toolkit, O’Reilly Media, Inc. find
  2. Castro S., Cubero M., Garat D., Moncecchi G. (2016, November), Is This a Joke? Detecting Humor in Spanish Tweets, Ibero-American Conference on Artificial Intelligence, Springer International Publishing, pp. 139–150. find
  3. Davidov D., Oren Tsur, Rappoport A. (2010), Semi-Supervised Recognition of Sarcastic Sentences in Twitter and Amazon, Proceedings of the Fourteenth Conference on Computational Natural Language Learning, Association for Computational Linguistics, pp.107–116. find
  4. Fellbaum C. (1998, ed.), WordNet: An Electronic Lexical Database, Cambridge, MA, MIT Press. find
  5. Hempelmann C. (2004), Script Opposition and Logical Mechanism in Punning, Humor, 17–4, pp. 381–392. find
  6. Mihalcea R., Strapparava C. (2006), Learning to laugh (automatically): Computational models for humor recognition, Computational Intelligence, 22(2), pp. 126–142. find
  7. Mikhalkova E. V. (2009), Pragmatics and Semantics of Invective in Mass Media Discourse (Based on Russian and American Comic TV-Shows) [Pragmatika i semantika invektivy v massmedijnom diskurse (na materiale russkih i amerikan-skih komedijnyh teleshou)], Abstract of Candidate’s Degree Thesis, Tyumen. find
  8. Mikhalkova E. V. (2010, September), A Theory of Invective Names: Possibilities in Formalizing Humorous Texts [Koncepcija invektivnyh imen: vozmozhnosti primenenija dlja formalizacii smysla komicheskih tekstov], Proceedings of KII-2010: The Twelfth National Conference on Artificial Intelligence [KII‑2010: Dvenadcataja nacional’naja konferencija po iskusstvennomu intellektu s mezh-dunarodnym uchastiem], Vol. 1, pp. 201–208. find
  9. Miller T., Gurevych I. (2015), Automatic Disambiguation of English Puns, The 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing of the Asian Federation of Natural Language Processing: Proceedings of the Conference (ACL–IJCNLP), Vol. 1, Stroudsburg, PA: Association for Computational Linguistics, July 2015, pp. 719–729. find
  10. Miller T., Hempelmann C., Gurevych I. (2017), SemEval-2017 Task 7: Detection and Interpretation of English Puns, Draft. our card
  11. Pedersen T., Kolhatkar V. (2009), Word-Net::SenseRelate::AllWords—a broad coverage word sense tagger that maximizes semantic relatedness, Proceedings of the North American Chapter of the Association for Computational Linguistics, Human Language Technologies 2009 Conference, Boulder, CO, pp. 17–20. find
  12. Pedregosa F. et al. (2011), Scikit-learn: Machine Learning in Python, JMLR 12, pp. 2825–2830. find
  13. Reyes A., Rosso P., Veale T. (2013), A Multidimensional Approach for Detecting Irony in Twitter, Language Resources and Evaluation, 47.1, pp. 239–268. find
  14. Roget P. M. (2004), Roget’s Thesaurus of English Words and Phrases, Project Gutenberg. find

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/mikhalkova-2017-detecting-intentional-lexical-ambiguity-english/