Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: comparing strings - better than soundex

by dree (Monsignor)
on Aug 14, 2002 at 08:51 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2025-03-24 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (64 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.