Hostname: page-component-74656f9884-8r8nv Total loading time: 0 Render date: 2026-11-07T07:50:27.793Z Has data issue: false hasContentIssue false

Computational generation and dissection of lexical replacement humor*

Published online by Cambridge University Press:  16 April 2015

ALESSANDRO VALITUTTI
Affiliation:
Department of Computer Science, University College Dublin, Belfield, Dublin, Ireland e-mail: alessandro.valitutti@ucd.ie
ANTOINE DOUCET
Affiliation:
L3i Laboratory, University of La Rochelle, avenue M. Crépeau, 17000 La Rochelle, France e-mail: antoine.doucet@univ-lr.fr
JUKKA M. TOIVANEN
Affiliation:
Department of Computer Science and HIIT, PO Box 68, FI-00014 University of Helsinki, Finland e-mail: jmtoivan@cs.helsinki.fi, hannu.toivonen@cs.helsinki.fi
HANNU TOIVONEN
Affiliation:
Department of Computer Science and HIIT, PO Box 68, FI-00014 University of Helsinki, Finland e-mail: jmtoivan@cs.helsinki.fi, hannu.toivonen@cs.helsinki.fi
Rights & Permissions [Opens in a new window]

Abstract

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.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2015 
Figure 0

Table 1. Example questions used to assess the tabooness of words

Figure 1

Table 2. Examples of outputs of the system, each generated under the corresponding experimental condition. Recall that the form constraint (word similarity) can be based on orthographic or phonetic similarity

Figure 2

Table 3. Mean funniness values and their standard deviations over texts under different experimental conditions; the absolute and relative improvements in terms of mean funniness over the plain form constraint

Figure 3

Table 4. Absolute sizes of the effects of the constraints, their relative effects, and their statistical significance levels. The significance levels have been corrected for multiple testing using Bonferroni correction (linear regression) or Westfall-Young correction (permutation tests). The cumulative effects are derived from the linear regression model by summing the absolute effects