Text::EditTranscript - Perl extension for determining the edit transcript between two strings


Text-EditTranscript documentation  | view source Contained in the Text-EditTranscript distribution.

Index


NAME

Top

Text::EditTranscript - Perl extension for determining the edit transcript between two strings

SYNOPSIS

Top

  use Text::EditTranscript;
  print EditTranscript("foo","bar");

DESCRIPTION

Top

The edit transcript is a sequence of operations to transform one string into another string. The operations include 'Insertion', 'Deletion', and Substitution. This module creates a string denoting the list of operations to transfer the second string into the first string where:

-

No operation required.

S

The character from second string should be substituted into the first string.

D

The character in that position from the first string should be deleted.

I

The character in that position in the second string should be inserted into the first string at that position.

This method uses the Levenshtein distance calculation to create the edit transcript.

EXAMPLES

SEE ALSO

Top

Text::Levenshtein, Text::LevenshteinXS

AUTHOR

Top

Leigh Metcalf, <leigh@fprime.net>

COPYRIGHT AND LICENSE

Top


Text-EditTranscript documentation  | view source Contained in the Text-EditTranscript distribution.