NAME

Lingua-Orthon - Various measures of orthographic relatedness between two letter strings

VERSION

Version 0.02

SYNOPSIS

use Lingua::Orthon 0.02;
my $ortho = Lingua::Orthon->new();
my $n = $ortho->index_identical('BANG', 'BARN');

DESCRIPTION

Lingua-Orthon - Various measures of orthographic relatedness between two letter strings

METHODS

new

my $ortho = Lingua::Orthon->new();

Constructs/returns class object for accessing and passing params to other methods.

are_orthons

Returns 0 or 1 if the two strings qualify as 1-mismatch (Coltheart-type) orthons: same size, and only one discrepancy by substitution (no additions, deletions or transpositions).

index_identical

$val = $orthon->index_identical($w1, $w2);

Returns the number of letters that are both identical and in the same serial position. So for BANG and BARN, 2 would be returned, for B and A, ignoring the common N as it is the third letter in BANG, the fourth letter in BARN, and so not in the same serial position across these two words.

hdist

$val = $orthon->hdist('String1', 'String2');

Return the Hamming Distance between two letter strings.

ldist

$val = $orthon->ldist('String1', 'String2');

Return the Levenshtein Distance between two letter strings.

len_maxseq

$val = $orthon->len_maxseq('String1', 'String2');

Return the length of the longest common subsequence between two letter strings. This subsequence is found by the lcss method in String::LCSS_XS.

unique_abbrevs

$val = $orthon->unique_abbrevs('String1', 'String2');

Return the number of unique abbreviations that can be made between two letter strings. This subsequence is found by the abbrev method in Text::Abbrev.

myers_ukkonen

$val = $orthon->myers_ukkonen('String1', 'String2');

Return the Myers-Ukkonen distance between two letter strings, as found by the similarity method in String::Similarity.

AUTHOR

Roderick Garton, <rgarton at cpan.org>

BUGS

Please report any bugs or feature requests to bug-Lingua-Orthon-0.02 at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Lingua-Orthon-0.02. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Lingua::Orthon

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2011-2012 Roderick Garton.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.