Subj : [Code review] Re: Determining Syllables To : comp.programming From : Arthur J. O'Dwyer Date : Fri Aug 05 2005 12:09 am On Thu, 4 Aug 2005, Arthur J. O'Dwyer wrote: > > You may want to Google "phonetic dictionary"; I was just reading an old > thread on the linux-elitists mailing list > http://zgp.org/pipermail/linux-elitists/2000-February/000229.html > discussing the exact same problem, and apparently all that OP needed was to > download an existing dictionary. Of course, this doesn't solve the > "Worcestershire" problem. :) > > The same thread contains the output of an application of the syllable > counter to find haiku in the Linux documentation. Brilliant stuff. Well, I took the afternoon and coded up a haiku-finder based on a phonetic dictionary (coincidentally, one provided by a CMU language researcher!). I've put it in the usual spot: http://www.contrib.andrew.cmu.edu/~ajo/disseminate/sdictlib.h http://www.contrib.andrew.cmu.edu/~ajo/disseminate/sdictlib.c http://www.contrib.andrew.cmu.edu/~ajo/disseminate/haiku-finder.c Hope this helps. -Arthur -- He was pleased when he finally had his head in front of the doorway .