Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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

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 having an uproarious good time at the Monastery: (5)
As of 2024-03-19 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found