Proceedings

Generating all Possible Palindromes from Ngram Corpora

Download BibTeX Cite

Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence. Special Track on Artificial Intelligence and the Arts. Pages 2489-2494.

© 2015 International Joint Conferences on Artificial Intelligence

Abstract

We address the problem of generating all possible palindromes from a corpus of Ngrams. Palindromes are texts that read the same both ways. Short palindromes (race car) usually carry precise, significant meanings. Long palindromes are often less meaningful, but even harder to generate. The palindrome generation problem has never been addressed, to our knowledge, from a strictly combinatorial point of view. The main difficulty is that generating palindromes require the simultaneous consideration of two inter-related levels in a sequence: the character and the word levels. Although the problem seems very combinatorial, we propose an elegant yet non-trivial graph structure that can be used to generate all possible palindromes from a given corpus of Ngrams, with a linear complexity. We illustrate our approach with short and long palindromes obtained from the Google Ngram corpus. We show how we can control the semantics, to some extent, by using arbitrary text corpora to bias the probabilities of certain sets of words. More generally this work addresses the issue of modelling human virtuosity from a combinatorial viewpoint, as a means to understand human creativity.

  1. [Furuya and Altenmüller, 2013] Shinichi Furuya and Eckart Altenmüller. Flexibility of movement organization in pi- ano performance. Frontiers in human neuroscience, 7, 2013.
  2. [Hopcroft et al., 1979] J.E. Hopcroft, R. Motwani, and J.D. Ullman. Introduction to automata theory, languages, and computation, volume 3. Addison-wesley Reading, MA, 1979.
  3. [Jurafsky and Martin, 2009] Daniel Jurafsky and James H. Martin. Speech and Language Processing (2Nd Edition).
  4. [Michel et al., 2011] J. Michel, Y. Shen, A. Aiden, A. Veres, M. Gray, J. Pickett, D. Hoiberg, D. Clancy, P. Norvig, J. Orwant, and et al. Quantitative Analysis of Culture Us- ing Millions of Digitized Books. Science, 331(6014):176- 182, 2011.
  5. [Norvig, 2002] Peter Norvig. World's longest palindrome sentence. http://norvig.com/palindrome.html, 2002. [On- line; accessed 9-February-2015]. Link
  6. [Papadopoulos et al., 2014] Alexandre Papadopoulos, Pierre Roy, and François Pachet. Avoiding Plagiarism in Markov Sequence Generation. In Carla E. Brodley and Peter Stone, editors, AAAI. AAAI Press, 2014.
  7. [Weichsel, 1962] Weichsel. Proc. American Mathematical Society, 13:47-52, 1962.
  8. [Whitehead and Russell, 1912] Alfred North Whitehead and Bertrand Russell. Principia Mathematica. 1912.
  9. [Śliwa, 2013] Joachim Śliwa. Magical amulet from Paphos with the ιαεω-palindrome. Studies in Ancient Art and Civ- ilization, 17:293-301, 2013.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards