-------- Original-Nachricht -------- > Datum: Sun, 31 Aug 2008 02:33:34 +0900 > Von: "Redd Vinylene" <reddvinylene / gmail.com> > An: ruby-talk / ruby-lang.org, freebsd-ruby / freebsd.org > Betreff: How to match words that rhyme? > Hello hello! > > How do I match words that rhyme, like end rhymes, last syllable > rhymes, double rhymes, beginning rhymes and first syllable rhymes? > > Like rhymer.com. I'm looking to improve my freestyle skills :) > > http://www.youtube.com/watch?v=SmqXKbxDoJ0 > > Much obliged, and thanks! > > -- > http://www.home.no/reddvinylene Dear Redd, assuming that you are talking about written text, you might modify the diff/lcs algorithm http://raa.ruby-lang.org/project/diff-lcs/ assigning weights to the changes to sort out those pairs of words which have long substrings at the beginning or at the end in common. If you want to search for English rhymes, a problem might be that English spelling is not very phonetic in many cases. For this, there's the soundex algorithm (you'll find several Ruby implementations on the web). Best regards, Axel -- GMX Kostenlose Spiele: Einfach online spielen und Spahaben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196