Skip to main content
    • Aa
    • Aa

Computational generation and dissection of lexical replacement humor*


We consider automated generation of humorous texts by substitution of a single word in a given short text. In this setting, several factors that potentially contribute to the funniness of texts can be integrated into a unified framework as constraints on the lexical substitution. We discuss three types of such constraints: formal constraints concerning the similarity of sounds or spellings between the original word and the substitute, semantic or connotational constraints requiring the substitute to be a taboo word, and contextual constraints concerning the position and context of the replacement. Empirical evidence from extensive user studies using real SMSs as the corpus indicates that taboo constraints are statistically very effective, and so is a constraint requiring that the substitution takes place at the end of the text even though the effect is smaller. The effects of individual constraints are largely cumulative. In addition, connotational taboo words and word position have a strong interaction.

Hide All

We would like to thank the anonymous reviewers for their insightful comments that have greatly helped us improve the paper. This work has been supported by the Academy of Finland (decision 276897, CLiC; and the Algorithmic Data Analysis Centre of Excellence, Algodan), and by the European Commission (FET grant 611733, ConCreTe; and FET grant 611560, WHIM).

Linked references
Hide All

This list contains references from the content that can be linked to their source. For a full set of references and notes please see the PDF or HTML where available.

A. Carrell , 1997. Joke competence and humor competence. Humor 10 : 173185.

M. Cory , 1995. Comedic distance in holocaust literature. Journal of American Culture 18 (1): 3540.

T. Jay , C. Caldwell-Harris , and K. King , 2008. Recalling taboo and nontaboo words. American Journal of Psychology 121 (1): 83103.

M. Levison , and G. Lessard , 1992. A system for natural language generation. Computers and the Humanities 26 : 4358.

R. A. Martin , 2007. The Psychology of Humor: An Integrative Approach. Elsevier, Elsevier: San Diego, California.

J.-B. Michel , Y. K. Shen , A. P. Aiden , A. Veres , M. K. Gray , The Google Books Team, J. P. Pickett , D. Hoiberg , D. Clancy , P. Norvig , J. Orwant , S. Pinker , M. A. Nowak and E. L. Aiden , 2011. Quantitative analysis of culture using millions of digitized books. Science 331 (6014): 176182.

V. Raskin , 1985. Semantic Mechanisms of Humor. Netherlands: Dordrecht-Boston-Lancaster.

V. Raskin , and S. Attardo , 1994. Non-literalness and non-bona-fide in language: approaches to formal and computational treatments of humor. Pragmatics and Cognition 2 (1): 3169.

W. Ruch 2008. Psychology of humor. In V. Raskin (ed.), The Primer of Humor Research, pp. 17100. De Gruyter Mouton, Hillsdale, New Jersey.

S. Seizer , 2011. On the uses of obscenity in live stand-up comedy. Anthropological Quarterly 84 (1): 209234.

O. Stock , and C. Strapparava 2003. HAHAcronym: humorous agents for humorous acronyms. Humor: International Journal of Humor Research 16 (3), pp. 297314.

J. Suls 1972. A two-stage model for the appreciation of jokes and cartoons: an information-processing analysis. In J. Goldstein and P. McGhee (ed.), The Psychology of Humor, pp. 81100. New York: Academic Press.

A. M. Zwicky , 1979. Classical malapropisms. Language Sciences 1 (2): 339348.

Recommend this journal

Email your librarian or administrator to recommend adding this journal to your organisation's collection.

Natural Language Engineering
  • ISSN: 1351-3249
  • EISSN: 1469-8110
  • URL: /core/journals/natural-language-engineering
Please enter your name
Please enter a valid email address
Who would you like to send this to? *


Altmetric attention score

Full text views

Total number of HTML views: 3
Total number of PDF views: 30 *
Loading metrics...

Abstract views

Total abstract views: 404 *
Loading metrics...

* Views captured on Cambridge Core between September 2016 - 23rd March 2017. This data will be updated every 24 hours.