01 Jul 2004 01:45:48 UTC
- Distribution: Text-LevenshteinXS
- Module version: 0.03
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (9)
- Testers (9004 / 0 / 1)
- KwaliteeBus factor: 1
- 100.00% Coverage
- License: unknown
- Activity24 month
- Download (2.99KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionJGOLDBERG Josh Goldberg
Text::LevenshteinXS - An XS implementation of the Levenshtein edit distance
use Text::LevenshteinXS qw(distance); print distance("foo","four"); # prints "2" print distance("foo","bar"); # prints "3"
This module implements the Levenshtein edit distance in a XS way.
The Levenshtein edit distance is a measure of the degree of proximity between two strings. This distance is the number of substitutions, deletions or insertions ("edits") needed to transform one string into the other one (and vice versa). When two strings have distance 0, they are the same. A good point to start is: <http://www.merriampark.com/ld.htm>
All the credits go to Vladimir Levenshtein the author of the algorithm and to Lorenzo Seidenari who made the C implementation <http://www.merriampark.com/ldc.htm>
Text::Levenshtein , Text::WagnerFischer , Text::Brew , String::Approx
Copyright 2003 Dree Mistrut <firstname.lastname@example.org> Modifications Copyright 2004 Josh Goldberg <email@example.com>
This package is free software and is provided "as is" without express or implied warranty. You can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Text::LevenshteinXS, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Text::LevenshteinXS
For more information on module installation, please visit the detailed CPAN module installation guide.