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.
Asked
Active
Viewed 1,499 times
2
-
This previously asked question basically comes to the same conclusion Brandon does: it's not nearly as easy as you might think. – JohnK813 Nov 25 '09 at 21:55
4 Answers
5
Pig Latin is text substitution. Haiku is poetry.
Find a regular expression to convert prose to poetry and you'll be rich.

John
- 15,990
- 10
- 70
- 110
3
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.