Code for the poem.exe bot on Twitter and Mastodon.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sources
wordlists
.gitignore
BUGS.txt
LICENSE
Makefile
README.markdown
bots.rb
convert_haiku.py
convert_wordlists.py
excludes.txt
poem.rb
test_corpus.rb

README.markdown

poem.exe

poem.exe is a twitter_ebooks bot that generates tiny haiku-like poems for @poem_exe.

The convert_haiku.py file reads haiku from a folder of text files and converts them to a single JSON file which the bot can use.

The poem.rb file generates poems using a Queneau assembly process. A poem is constructed by selecting the first line of a random haiku, 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.