in reply to Perls before Amazon

As ever, there's a lovely little module on CPAN that does this - Lingua::EN::MatchNames. It uses Lingua::EN::NameParse, Lingua::EN::Nickname etc. to split up the name, check for variants etc., and returns a (fairly arbitrary, but seems pretty accurate) percentage match. Very handy for cleaning up contacts databases...

Cheers,Ben.

Replies are listed 'Best First'.
Re: Re: Perls before Amazon
by hsmyers (Canon) on Jun 08, 2003 at 22:33 UTC
    Thanks! I've just installed
    • Lingua::EN::NickName
    • Lingua::EN::MatchNames
    • Lingua::EN::NameCase
    • Lingua::EN::NameParse
    • String::Similarity
    but for some reason picked String::Similarity as the place to start---oh well, twas ever thus!

    --hsm

    "Never try to teach a pig to sing...it wastes your time and it annoys the pig."