Monday, April 18, 2011

Haiku for April 18th: April Showers

I added a few lines of code to Poesytron so that it can create hundreds or even thousands of haiku at once.

Unfortunately, there's some glitch that I can't quite figure out, and after three tries (of trying to get 1,000 haiku), I only had 125.  I wish I had a clue about what's causing it to have errors!

Out of this batch of 125 haiku, nine had the word "rain" in them.  These three made the most sense to me:


or rain, migrating
the sound. Only whiten of
skeletons go with



April showers bring skeletons?


bay into, a-- comes,
full trampled the rain take the--
without dusk garden



April showers bring flowers.  Yes, right on, Poesytron!


Pollen rising inch.
Heat-- bodies, eyes, head, taste on--
lawn, rained it and she--


And flowers bring pollen, and pollen brings... well.  That's rather steamy.

Actually, that second line is probably one of Poesytron's most successful to date.  There is no haiku in the input that has all the words "bodies, eyes, head, taste", but since each successive pair is found together at some point in all the haiku, Poesytron pairs them together.  Even such simple rules for word selection can sometimes work.

No comments:

Post a Comment