It’s time to write a program to make a poem! I decided to make propaganda poetry for Reading and Writing Electronic Text. Hopefully very bad propaganda poetry.
I dug up some books from the library and compiled a text file with war slogans from World War Two posters (British and American.) I also created a text file with headlines from The Economist (always mysteriously poetic!) and threw in my corporate mottos to the mix for good measure.
I think the results are actually pretty good for being fairly nonsensical. Here are my favorite poems that were generated. (You can find the code for the program at the end of this post.)
Poem One
Relearning old lessons
we trust
All that glitters is
kill
This is the enemy.
Keep that lumber coming!
Is your trip necessary?
Grow vitamins at your kitchen door.
Just a good afternoon’s
Bad ventilation ruins ammunition.
Poem Two
Buy victory bonds. Invest.
Come into the factories.
United we are strong.
Do it! Keep ‘em firing!
The daily diary of
neighbor, State Farm is there
A few careless words
If you are bombed
→ Read more