Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://190010]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-07-10 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (202 votes), past polls