Search

Haiku Generator

Having some geeky fun with a PHP haiku generator that I’ve put together. Basically, I feed it a large text file, it then strips out all of the 5 and 7 syllable sentences and puts them back together in Haiku format.

Here are some examples. The source text for these was Ulysses, by James Joyce.

Nations of the earth
Whew! Girl in Meath street that night
All that for nothing

The word known to all men
Part shares and part profits
Thieves rob the slain

–Alas, Stephen said
–There it is, Red Murray said
Dignam’s potted meat

#haiku   #ulysses   #php

https://plus.google.com/+FraserSmith/posts/Q1o5f1brZhC