At 09:23 2002-05-16 +0200, Lee Goddard wrote: >1. Get a rhythm from a phrase (the title) and use it throughout. > Impossible without knowing where in a word the accent falls, > and there is no formula in English. But I have a plan, involving > the use of the apostrophes used in (good) dictionaries to mark > stress --- if it's not in my rhyming dictionary module then I'll > put together a module to read my OED CD-ROM.
I think the Moby Pronunciator marks stress passably well: http://www.dcs.shef.ac.uk/research/ilash/Moby/ In fact, I wrote a bit of simple code for dealing with it, for a TPJ article a while back. The code is here: http://www.speech.cs.cmu.edu/~sburke/mpron/ And I'm told that that article will appear in the /Games, Diversions, & Perl Culture: Best of The Perl Journal/ volume that O'Reilly will have out in... three months maybe? It's elementary text handling, nothing you couldn't infer from just looking at the code there and at the format of the Moby Pronunciator files. -- Sean M. Burke http://www.spinn.net/~sburke/