Text::Levenshtein::XS - XS Levenshtein edit distance.
use Text::Levenshtein::XS qw/distance/; print distance('Neil','Niel'); # prints 2
Returns the number of edits (insert,delete,substitute) required to turn the source string into the target string. XS implementation (requires a C compiler). Works correctly with utf8.
use Text::Levenshtein::XS qw/distance/; use utf8; distance('ⓕⓞⓤⓡ','ⓕⓤⓞⓡ'), # prints 2
Arguments: source string and target string.
Returns: int that represents the edit distance between the two argument. Stops calculations and returns -1 if max distance is set and reached.
Wrapper function to take the edit distance between a source and target string using XS algorithm implementation.
Drop in replacement for Text::LevenshteinXS
Text::Levenshtein::Damerau
Text::Levenshtein::Damerau::PP
Text::Levenshtein::Damerau::XS
Text::Fuzzy
Please report bugs to:
https://rt.cpan.org/Public/Dist/Display.html?Name=Text-Levenshtein-XS
Nick Logan <ugexe@cpan.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Text::Levenshtein::XS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Levenshtein::XS
CPAN shell
perl -MCPAN -e shell install Text::Levenshtein::XS
For more information on module installation, please visit the detailed CPAN module installation guide.