Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

ljcooke/poemexe

Repository files navigation

poem.exe

poem.exe is a project that generates tiny haiku-like poems and posts them on social media.

More info:

Code

The corpus directory contains text files with poems and word lists, and Python scripts which compile these files into a model.json file.

The lib directory contains a Ruby library which reads this model.json file and generates poems using a Queneau assembly process. A poem is constructed by selecting the first line of a random poem, the second line of another, and the third line of yet another.

This forms a 1–2–3 structure. Sometimes a different structure is used: for example, a 1–2–2–3 structure, in which two middle lines are taken from two different poems.