Text::LevenshteinXS - An XS implementation of the Levenshtein edit distance


Text-LevenshteinXS documentation Contained in the Text-LevenshteinXS distribution.

Index


Code Index:

NAME

Top

Text::LevenshteinXS - An XS implementation of the Levenshtein edit distance

SYNOPSIS

Top

 use Text::LevenshteinXS qw(distance);

 print distance("foo","four");
 # prints "2"

 print distance("foo","bar");
 # prints "3"




DESCRIPTION

Top

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>

CREDITS

Top

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>

SEE ALSO

Top

Text::Levenshtein , Text::WagnerFischer , Text::Brew , String::Approx

AUTHOR

Top

Copyright 2003 Dree Mistrut <dree@friul.it> Modifications Copyright 2004 Josh Goldberg <josh@3io.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.


Text-LevenshteinXS documentation Contained in the Text-LevenshteinXS distribution.

package Text::LevenshteinXS;

use strict;
use warnings;
use Carp;

require Exporter;
require DynaLoader;
use AutoLoader;

our @ISA = qw(Exporter DynaLoader);

our %EXPORT_TAGS = ( 'all' => [ qw(
	
) ] );

our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );

our @EXPORT = qw(
distance
);
our $VERSION = '0.03';

bootstrap Text::LevenshteinXS $VERSION;

1;
__END__