Is there a database somewhere with files that contain words tagged by syllable count? I'm looking to implement a haiku generator for fun.
The Moby Corpus provides a fairly large source of hyphenated words.