A REST Service for Poetry Generation

Author Hugo Gonçalo Oliveira

Thumbnail PDF


  • Filesize: 481 kB
  • 8 pages

Document Identifiers

Author Details

Hugo Gonçalo Oliveira

Cite AsGet BibTex

Hugo Gonçalo Oliveira. A REST Service for Poetry Generation. In 6th Symposium on Languages, Applications and Technologies (SLATE 2017). Open Access Series in Informatics (OASIcs), Volume 56, pp. 12:1-12:8, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2017)


This paper describes a REST API developed on the top of PoeTryMe, a poetry generation platform. This API exposes several functionalities, from the production of full poems, to narrower tasks, having in mind their utility for poetry composition, including the acquisition of well-formed lines, or semantically-related words, possibly constrained by the number of syllables, rhyme, or polarity. Examples that illustrate the endpoints and what they can be used for are also revealed.
  • REST
  • creative web services
  • poetry generation
  • computational creativity


  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    PDF Downloads


  1. John Charnley, Simon Colton, and Maria Teresa Llano. The FloWr framework: Automated flowchart construction, optimisation and alteration for creative systems. In International Conference on Computational Creativity (ICCC), pages 315-323, June 2014. Google Scholar
  2. John Charnley, Simon Colton, Maria Teresa Llano, and Joseph Corneli. The FloWr online platform: Automated programming and computational creativity as a service. In 7th International Conference on Computational Creativity (ICCC), pages 363-370, 2016. Google Scholar
  3. Simon Colton and Geraint A. Wiggins. Computational creativity: The final frontier? In 20th European Conference on Artificial Intelligence (ECAI), pages 21-26, 2012. Google Scholar
  4. Pablo Gervás. WASP: Evaluation of different strategies for the automatic generation of spanish verse. In AISB'00 Symposium on Creative &Cultural Aspects and Applications of AI &Cognitive Science, pages 93-100, 2000. Google Scholar
  5. Pablo Gervás. Deconstructing computer poets: Making selected processes available as services. Computational Intelligence, 33(1):3-31, 2017. Google Scholar
  6. Hugo Gonçalo Oliveira. PoeTryMe: a versatile platform for poetry generation. In Proceedings of the ECAI 2012 Workshop on Computational Creativity, Concept Invention, and General Intelligence, C3GI 2012, Montpellier, France, August 2012. Google Scholar
  7. Hugo Gonçalo Oliveira and Amílcar Cardoso. Poetry generation with PoeTryMe. In T. R. Besold, M. Schorlemmer, and A. Smaill, editors, Computational Creativity Research: Towards Creative Machines, chapter 12, pages 243-266. Atlantis-Springer, 2015. Google Scholar
  8. Hugo Gonçalo Oliveira. Tra-la-Lyrics 2.0: Automatic generation of song lyrics on a semantic domain. Journal of Artificial General Intelligence, 6(1):87-110, 2015. Special Issue: Computational Creativity, Concept Invention, and General Intelligence. Google Scholar
  9. Hugo Gonçalo Oliveira. Automatic generation of poetry inspired by Twitter trends. In Knowledge Discovery, Knowledge Engineering and Knowledge Management, volume 631 of CCIS, pages 13-27. Springer, 2016. Google Scholar
  10. Hugo Gonçalo Oliveira, Raquel Hervás, Alberto Díaz, and Pablo Gervás. Multilanguage Extension and Evaluation of a Poetry Generator, 2017. (in press). Google Scholar
  11. Hugo Gonçalo Oliveira and Ana Oliveira Alves. Poetry from concept maps: Yet another adaptation of PoeTryMe’s flexible architecture. In 7th International Conference on Computational Creativity, 2016. Google Scholar
  12. Anna Kantosalo, Jukka M. Toivanen, Ping Xiao, and Hannu Toivonen. From isolation to involvement: Adapting machine creativity software to support human-computer co-creation. In 5th International Conference on Computational Creativity, 2014. Google Scholar
  13. H. M. Manurung. An evolutionary algorithm approach to poetry generation. PhD thesis, University of Edimburgh, Edimburgh, UK, 2003. Google Scholar
  14. Joanna Misztal and Bipin Indurkhya. Poetry generation system with an emotional personality. In 5th International Conference on Computational Creativity (ICCC), 2014. Google Scholar
  15. Jukka M. Toivanen, Matti Järvisalo, and Hannu Toivonen. Harnessing constraint programming for poetry composition. In 4th International Conference on Computational Creativity (ICCC), pages 160-167, 2013. Google Scholar
  16. Tony Veale. Creativity as a web service: A vision of human and computer creativity in the web era. In Creativity and (Early) Cognitive Development: A Perspective from Artificial Creativity, Developmental AI, and Robotics, pages 73-78. AAAI Press, 2013. Google Scholar
  17. Tony Veale. A service-oriented architecture for metaphor processing. In Second Workshop on Metaphor in NLP, pages 52-60. ACL Press, 2014. Google Scholar
  18. Martin Žnidaršič, Amílcar Cardoso, Pablo Gervás, Pedro Martins, Raquel Hervás, Ana Oliveira Alves, Hugo Gonçalo Oliveira, Ping Xiao, Simo Linkola, Hannu Toivonen, Janez Kranjc, and Nada Lavrac. Computational creativity infrastructure for online software composition: A conceptual blending use case. In 7th International Conference on Computational Creativity (ICCC), Paris, France, 2016. Google Scholar
  19. Rui Yan. i, Poet: Automatic poetry composition through recurrent neural networks with iterative polishing schema. In 25th International Joint Conference on Artificial Intelligence (IJCAI), pages 2238-2244, 2016. URL: http://www.ijcai.org/Abstract/16/319.