Machine humour : an implemented model of puns

This thesis describes a formal model of a subtype of humour, and the implementation of that model in a program that generates jokes of that subtype. Although there is a great deal of literature on humour in general, very little formal work has been done on puns, and none has been implemented. All current linguistic theories of humour are over-general and not falsi able. Our model, which is speci c, formal, implemented and evaluated, makes a signi cant contribution to the eld. Punning riddles are our chosen subtype of verbal humour, for several reasons. They are very common, they exhibit certain regular structures and mechanisms, and they have been studied previously by linguists. Our model is based on our extensive analysis of large numbers of punning riddles, taken from children's joke books. The implementation of the model, JAPE (Joke Analysis and Production Engine), generates punning riddles, from a humour independent lexicon. Pun generation requires much less world knowledge than pun comprehension, making it feasible for implementation. To support our claim that all of JAPE's output is punning riddles, we conducted an evaluatory experiment. We took JAPE texts, human-generated texts, nonsense non-jokes and sensible non-jokes, and asked joke experts to evaluate them. For joke experts, we used 8{11 year old children, since psychological research suggests that this age group enjoys, and can recognize, punning riddles better than other age groups. The results showed that JAPE's output texts are, in fact, recognizably jokes. The evaluation showed that our model adequately describes a signi cant subtype of verbal humour. We believe that this model can now be expanded to cover puns in general, as well as other types of linguistic humour. ii Acknowledgements I would rst of all like to thank my supervisors, Drs Graeme Ritchie and Helen Pain, for their careful guidance during the course of the research reported here, and for smiling patiently at all the bad jokes { mine and JAPE's. Sev Davison has been the most wonderful assistant that anyone could ask for | thanks for helping with the experiments, reading through this tome, and being generally supportive. Thanks too to Fiona Pollard and Ben Hambidge for their devoted e orts to convince small children that experiments are fun, and to Paul Bailey for proofreading the thesis. I would also like to thank all the volunteers who helped me test the prototype program, in particular: David Asher, Jim Broughton, Don Casadonte, William Chesters, Myles Chippendale, Mark Dalgarno, Richard Evans, Enrique Filloy-Garcia, Chris Gathercole, Richard Henson, Tudor Wyatt Johnston, Matthias Klaes, Stewart Long, Steve McCoy, Marc Nantel, Simon Perkins, Tim Pizey, Sheila Rock, Sarah Rose, and Chris Seah. Your comments were invaluable. The nal evaluation was made possible by a great deal of help from the sta of Craiglockhart Primary School, and the sta of the Edinburgh International Science Festival. Thanks also to all the children who took part. Thanks to Garry Dobson for his voice. The nal two years of my PhD were funded by the Natural Science and Engineering Council of Canada. In my nal year, I was helped by a Special Opportunity Grant. Special thanks to Jean-Pierre Lalande and Lyn Pharand, for being much too helpful to be real bureaucrats, and to Graeme Hirst, for helping to convince NSERC to fund me. iii Declaration I hereby declare that I composed this thesis entirely myself and that it describes my own research. Kim Binsted Edinburgh November 6, 1996 iv

[1]  O. Takizawa Characteristics of some sorts of connotations in spoken language , 1993 .

[2]  Judith Greene,et al.  Learning to Use Statistical Tests in Psychology , 1982 .

[3]  Graeme Ritchie Learning from AM , 1994 .

[4]  M. Boden The creative mind : myths & mechanisms , 1991 .

[5]  K. Binsted,et al.  Computational rules for generating punning riddles , 1997 .

[6]  Ellen F. Prince,et al.  Toward a taxonomy of given-new information , 1981 .

[7]  S. Freud,et al.  Jokes and Their Relation to the Unconscious , 1905 .

[8]  Dan Loehr,et al.  An integration of a pun generator with a natural language robot , 1996 .

[9]  S. Siegel,et al.  Nonparametric Statistics for the Behavioral Sciences , 2022, The SAGE Encyclopedia of Research Design.

[10]  Bruce G. Buchanan,et al.  Artificial Intelligence as an Experimental Science , 1988 .

[11]  Rachel Giora,et al.  On the cognitive aspects of the joke , 1991 .

[12]  K. Binsted Using Humour to Make Natural Language Interfaces More Friendly , 1995 .

[13]  Michal Ephratt What's in a joke? , 1990 .

[14]  Salvatore Attardo,et al.  Non-literalness and non-bona-fîde in language: An approach to formal and computational treatments of humor , 1994 .

[15]  T. Odlin Women, Fire, and Dangerous Things: What Categories Reveal about the Mind , 1988 .

[16]  G. Reeke The society of mind , 1991 .

[17]  Rachel Giora,et al.  On the informativeness requirement , 1988 .

[18]  Katie Wales,et al.  The Language of Jokes: Analysing Verbal Play , 1993 .

[19]  Bruce F. Katz,et al.  A Neural Resolution of the Incongruity-resolution and Incongruity Theories of Humour , 1993 .

[20]  R. Logie,et al.  Age-of-acquisition, imagery, concreteness, familiarity, and ambiguity measures for 1,944 words , 1980 .

[21]  Allen Newell,et al.  Computer science as empirical inquiry: symbols and search , 1976, CACM.

[22]  Noam Chomsky,et al.  वाक्यविन्यास का सैद्धान्तिक पक्ष = Aspects of the theory of syntax , 1965 .

[23]  H. Foot,et al.  Humour and laughter: Theory, research and applications. , 1976 .

[24]  Kim Binsted,et al.  An Implemented Model of Punning Riddles , 1994, AAAI.

[25]  S. Shott,et al.  Nonparametric Statistics , 2018, The Encyclopedia of Archaeological Sciences.

[26]  Douglas B. Lenat,et al.  CYC: a large-scale investment in knowledge infrastructure , 1995, CACM.

[27]  L. Barsalou Context-independent and context-dependent information in concepts , 1982, Memory & cognition.

[28]  Mahood,et al.  The crack-a-joke book , 1992 .

[29]  Lenhart K. Schubert Are There Preference Trade-offs in Attachment Decisions? , 1986, AAAI.

[30]  PUNSKim Binsted SPECULATIONS ON STORY , 1996 .

[31]  M. Minsky Jokes and the Logic of the Cognitive Unconscious , 1980 .

[32]  V. Raskin,et al.  Script theory revis(it)ed: joke similarity and joke representation model , 1991 .

[33]  Carmen Curcó,et al.  The implicit expression of attitudes, mutual manifestness, and verbal humour , 1996 .

[34]  Peter Eldin,et al.  The vampire joke book , 1987 .

[35]  E. Judith Weiner,et al.  Some pragmatic features of lexical ambiguity and simple riddles , 1993 .