Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: comparing strings - better than soundex

by dree (Monsignor)
on Aug 14, 2002 at 08:51 UTC ( #190010=note: print w/replies, xml ) Need Help??

in reply to comparing strings - better than soundex

If you want to compare two words for its sound similarity, better algorithms than Soundex are:

Text::Metaphone and Text::DoubleMetaphone.

If you want string comparison (i.e. to order the results after a multiple match done by the above) you can try:

Text::Levenshtein or Text::WagnerFischer

If you want to compare entire phrases you can try also Text::PhraseDistance
  • Comment on Re: comparing strings - better than soundex

Replies are listed 'Best First'.
Re: Re: comparing strings - better than soundex
by nmerriweather (Friar) on Aug 14, 2002 at 16:54 UTC
    oh wow! great! i think metaphone was the one i had seen before. thats a great idea using those mods to order results too. you just saved me a few hours of work. and now metaphone will appear in the search box for the next person!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://190010]
[Corion]: choroba: Naah, I don't mind rewriting history, at least when it is in my favour ;)
[Corion]: Ruining other peoples clones is not nice, but as I only have that repo to (later) show people when I encounter problems, I don't mind that
[Corion]: I should look into self-hosting gitprep instead of relying so much on github

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-01-23 10:35 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (192 votes). Check out past polls.