tosaiju has asked for the wisdom of the Perl Monks concerning the following question:
I’m searching for a string comparison function - where I have to find the distance/score between two strings or a string with an array. Appreciate any thoughts/help.
I have a string (say a person’s name) which to be compared with a list of values (names) – if any of them matches – to show the most matching one.
I have heard about an algorithm “Damerau–Levenshtein distance”; also saw a CPAN module related to it “Text::Levenshtein”. Just wondering if this would be best option or are there any other best modules for string comparison.
Thanks a lot for all advice and help Dear Monks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compare String within an Array
by davido (Cardinal) on Aug 01, 2012 at 05:59 UTC | |
by tosaiju (Acolyte) on Aug 01, 2012 at 07:07 UTC | |
by davido (Cardinal) on Aug 01, 2012 at 07:27 UTC | |
by tosaiju (Acolyte) on Aug 01, 2012 at 07:52 UTC |