2

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.

Costique
  • 23,644
  • 4
  • 74
  • 78
Perlhakr
  • 23
  • 1
  • 5
  • 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 Answers4

7

Must count syllables

Need nature references

Haiku's not easy

David Thornley
  • 55,402
  • 8
  • 89
  • 155
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,934
  • 9
  • 67
  • 109
5

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

Powerlord
  • 84,782
  • 17
  • 123
  • 168
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.

Community
  • 1
  • 1
Brandon
  • 67,189
  • 30
  • 193
  • 221