GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEXT::LEVENSHTEIN::DAMERAU::PP (3)

.ds Aq ’

NAME

Text::Levenshtein::Damerau::PP - Pure Perl Damerau Levenshtein edit distance.

CONTENTS

SYNOPSIS



        use Text::Levenshtein::Damerau::PP qw/pp_edistance/;

        print pp_edistance(Neil,Niel);
        # prints 1



DESCRIPTION

Returns the true Damerau Levenshtein edit distance of strings with adjacent transpositions. Pure Perl implementation. Works correctly with utf8.



        use Text::Levenshtein::Damerau::PP qw/pp_edistance/;
        use utf8;

        pp_edistance(XXXX,XXXX),
        # prints 1



METHODS

    pp_edistance

Arguments: source string and target string.
o OPTIONAL 3rd argument int (max distance; only return results with $int distance or less). 0 = unlimited. Default = 0.
Returns: int that represents the edit distance between the two argument. Stops calculations and returns -1 if max distance is set and reached.

Function to take the edit distance between a source and target string. Contains the actual algorithm implementation.



        use Text::Levenshtein::Damerau::PP qw/pp_edistance/;
        print pp_edistance(Neil,Niel);
        # prints 1

        print pp_edistance(Neil,Nielx,1);
        # prints -1



SEE ALSO

o Text::Levenshtein::Damerau
o Text::Levenshtein::Damerau::XS

BUGS

Please report bugs to:

<https://rt.cpan.org/Public/Dist/Display.html?Name=Text-Levenshtein-Damerau>

AUTHOR

Nick Logan <ug@skunkds.com>

LICENSE AND COPYRIGHT

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEXT::LEVENSHTEIN::DAMERAU::PP (3) 2013-06-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.