This repo has several Python scripts that helped me generate poetry.
The main program is etiquette.py: Generate some poetry from three included source texts: Etiquette, Notes From Underground, and Sailor's Words. The process is described in detail on my blog.
guessSyllables.py Guess syllables of gibberish phrases i.e. "da dadum dum dum dee do" "shoobee doowah" "boo boo kachu".
markov.py A Markov object with a generate function that takes a starting word as its arguement.
nplc.py Generate a list of noun phrases. I wound up saving my noun phrases in text files which are included.