From: Axel Etzold Date: 2008-09-01T17:38:08+09:00 Subject: Re: How to match words that rhyme? -------- Original-Nachricht -------- > Datum: Mon, 1 Sep 2008 12:09:01 +0900 > Von: Erik Hollensbe > An: ruby-talk@ruby-lang.org > Betreff: Re: How to match words that rhyme? > Michael Morin wrote: > > English is extremely inconsistent. Good doesn't rhyme with food which > > doesn't rhyme with flood. You're going to need something that describes > > the phonetics of each word, like an open dictionary. With that, you > > should be able to identify which words rhyme. > > > > Rhyme is a subjective term as well. Some words "rhyme" even though they > > don't meet any formal definition of "rhyme," they just sound right > > together. But this is a lesser concern. > > Maybe I'm missing something subtle, but isn't this what soundex is for? .. which is why I had proposed it in a previous post. But Michael is right with his examples ... a great number of often-occurring words that are classified as similar won't sound similar. So, a good dictionary with phonetic information seems the best idea to go for, Maybe Wiktionary ? I also liked the American Heritage Dictionary (but I think if you want to use it as often as you'd need to generate a dictionary of sound-alike words, you'd have to buy the installed version, and I don't know if it runs under anything else than Windows...) Best regards, Axel > > http://en.wikipedia.org/wiki/Soundex > > It's definitely not perfect; my experience has been it generally works > better to catch misspellings in proper nouns than anything else, but it > could be potentially useful in the first part of a multi-step filtering > process. > > At the worst, soundex is found damn near everywhere (even in some SQL > Database implementations.. I'd be surprised if there wasn't a ruby one) > and it should be easy to test (and rule out, if necessary) with a > wordlist. > > -Erik > -- > Posted via http://www.ruby-forum.com/. -- Psssst! Schon das coole Video vom GMX MultiMessenger gesehen? Der Eine f�r Alle: http://www.gmx.net/de/go/messenger03