Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Answer: How do I find the percentage of similarity between strings?

by The Mad Hatter (Priest)
on Apr 07, 2003 at 22:31 UTC ( #248754=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > How do I find the percentage of similarity between strings? - Answer contributed by The Mad Hatter

String::Approx is good as someone else said. So is Text::Levenshtein. With the values you can get from both modules, you should be able to do some math to get a percentage.

You might also want to read Levenshtein distance: calculating similarity of strings.

  • Comment on Answer: How do I find the percentage of similarity between strings?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[shmem]: perl -lE 'sub good::AUTOLOAD{say "@_"} "good"->monks(" morning")'
[Lady_Aleena]: choroba, I'm worried about ambrus too.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2017-06-26 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (573 votes). Check out past polls.