Skip to main content

Advertisement

Log in

GraPHIA: a computational model for identifying phonological jokes

  • Letter to the Editor
  • Published:
Cognitive Processing Aims and scope Submit manuscript

Abstract

Currently in humor research, there exists a dearth of computational models for humor perception. The existing theories are not quantifiable and efforts need to be made to quantify the models and incorporate neuropsychological findings in humor research. We propose a new computational model (GraPHIA) for perceiving phonological jokes or puns. GraPHIA consists of a semantic network and a phonological network where words are represented by nodes in both the networks. Novel features based on graph theoretical concepts are proposed and computed for the identification of homophonic jokes. The data set for evaluating the model consisted of homophonic puns, normal sentences, and ambiguous nonsense sentences. The classification results show that the feature values result in successful identification of phonological jokes and ambiguous nonsense sentences suggesting that the proposed model is a plausible model for humor perception. Further work is needed to extend the model for identification of other types of phonological jokes.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Notes

  1. It is possible that the computation of thresholds is data set specific and may not generalize very well to other data sets. Hence, we also used a two-layer feed forward neural network to classify the given text input into the relevant classes which does involve a fixed threshold. The network was trained with the Levenberg–Marquardt algorithm and the simulation was implemented in MATLAB. Half the data set used for training and the other half of the data set used for testing. An accuracy of 98.3% was obtained with the neural network classifier indicating that the novel features can be used to identify normal sentences, homophonic puns and the two types of nonsense ambiguous sentences even without using pre-assigned explicit thresholds.

References

  • Attardo S (1997) The semantic foundations of cognitive theories of humor. Humor Int J Humor Res 10:395–420

    Google Scholar 

  • Attardo S, Raskin V (1994) Non-literalness and non-bona-fide in language: an approach to formal and computational treatments of humor. Pragm Cogn 2:31–69

    Google Scholar 

  • Binsted K (1996) Machine humor: an implemented model of puns Doctoral Dissertation. University of Edinburgh, Edinburgh, Scotland

    Google Scholar 

  • Deo N (1974) Graph theory with applications to engineering and computer science. Prentice-Hall, India

    Google Scholar 

  • Goel V, Dolan RJ (2001) The functional anatomy of humor: segregating cognitive and affective components. Nat Neurosci 4:237–238. doi:10.1038/85076

    Article  PubMed  CAS  Google Scholar 

  • Katz B (1996) A neural invariant of humour. Proc Internatl Workshop Comp Humor University of Twente, Netherlands, pp 103–109

    Google Scholar 

  • McDonough CJ (2001) Mnemonic string generator: software to aid memory of random passwords. Technical Report. CERIAS, Purdue University

  • Moran JM, Wig GS, Adams RB Jr, Janata P, Kelley WM (2004) Neural correlates of humor detection and appreciation. Neuroimage 3:1055–1060. doi:10.1016/j.neuroimage.2003.10.017

    Article  Google Scholar 

  • Mulder MP, Nijholt A (2002) Humour research: state of the art. Technical Report No. 02-34, University of Twente, Netherlands

  • Nerlich B, Clarke D (2001) Ambiguities we live by: towards a pragmatics of polysemy. J Pragmatics 33:1–20. doi:10.1016/S0378-2166(99)00132-0

    Article  Google Scholar 

  • Paulos J (1980) Mathematics and humor. University of Chicago Press, Pun of the day. http://www.punoftheday.com

  • Ritchie G (1999) Developing the inconguity-resolution theory. Proc AISB ‘99 Symp creative language: humor and stories, Edinburgh, pp 78–85

  • Ruch W, Attardo S, Raskin V (1993) Towards an empirical verification of the general theory of verbal humor. Humor Int J Humor Res 6:123–136

    Article  Google Scholar 

  • Shammi P, Stuss D (1999) Humor appreciation: a role of the right frontal lobe. Brain 122:657–666. doi:10.1093/brain/122.4.657

    Article  PubMed  Google Scholar 

  • Srinivasan N, Pariyadath V (2008) Dissecting the frog: computational approaches to humor perception. In: Srinivasa N, Gupta AK, Pandey J (eds) Advances in cognitive science, vol 1. Sage Publications, New Delhi, pp 199–215

    Google Scholar 

  • Stock O, Strapparava C (2002) Humorous agent for humorous acronyms: the HAHAcronym project. Humor Int J Humor Res 16:297–314. doi:10.1515/humr.2003.016

    Article  Google Scholar 

  • Taylor J, Mazlack LJ (2004) Computationally recognizing wordplay in jokes. Proc Cog Sci Soc, Chicago, pp 1315–1320

    Google Scholar 

  • Vaid J, Hull R, Heredia R, Gerkens D, Martinez F (2003) Getting a joke: the time course of meaning activation in verbal humor. J Pragmatics 35:1431–1449. doi:10.1016/S0378-2166(02)00184-4

    Article  Google Scholar 

  • Veatch TC (1998) A theory of humor. Humor Int J Humor Res 11:161–215

    Google Scholar 

  • Yokogawa T (2002) Japanese pun analyzer using pun articulation similarities. Proc IEEE Intern Conf Fuzzy Sys, Honolulu, USA, pp 1114–1119

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Narayanan Srinivasan.

Appendix: List of sentences for which feature values are shown in Table 1

Appendix: List of sentences for which feature values are shown in Table 1

  • List of jokes

  • [Pisa] Italian building inspectors in Pisa are leanient.

  • [Criminal] A criminal’s best asset is his lie ability.

  • [Dentist] Be kind to your dentist because he has fillings too.

  • [Gold] You can make gold soup by putting in 24 carrots.

  • [Atheism] Atheism is a non-prophet organization.

  • List of ambiguous sentences

  • [Car] The car’s mane was very shrewd.

  • [Key] When they found the key a kettle bloomed.

  • [Steel] A blue steel waited calmy.

  • [Breakfast] She ate my breakfast role.

  • [Cruise] The cruise finished construction on the building.

  • [Flee] There was a flee on the dog’s back.

  • List of normal meaningful sentences

  • [Werewolf] Werewolves are fictitious creatures like elves.

  • [Deer] Not all animals are as agile and graceful as a deer.

  • [Bee] A bee stung her on the cheek.

  • [Plate] She washed the plates with soap and water.

  • [Cabbage] Cabbages are like lettuce because they are both vegetables.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Srinivasan, N., Pariyadath, V. GraPHIA: a computational model for identifying phonological jokes. Cogn Process 10, 1–6 (2009). https://doi.org/10.1007/s10339-008-0221-3

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10339-008-0221-3

Keywords

Navigation