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,712
  • 4
  • 76
  • 79
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
  • 56,304
  • 9
  • 91
  • 158
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
5

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

Powerlord
  • 87,612
  • 17
  • 125
  • 175
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
  • 68,708
  • 30
  • 194
  • 223