views:

115

answers:

5

Is it possible to programmatically convert regular English into English haiku? Or is this something too complicated to contemplate? I have a feeling that this is a lot more involved than a Pig Latin formatter.

+1  A: 

Pig Latin is text substitution. Haiku is poetry.

Find a regular expression to convert prose to poetry and you'll be rich.

John at CashCommons
+2  A: 

You'd first need to find a way to count the number of syllables in a given word, take a look at the answers in Detecting Syllables in a Word.

Keep in the mind the top voted answer references an entire thesis, so this is definitely more involved than a pig latin formatter.

Brandon
A: 

This previously asked question basically comes to the same conclusion Brandon does: it's not nearly as easy as you might think.

JohnK813
+1  A: 

Must count syllables

Need nature references

Haiku's not easy

David Thornley
+2  A: 

Pig Latin is easy.
Haiku is much different.
Syllables, not words.

R. Bemrose