Package Info

perl-Text-Brew


An implementation of the Brew edit distance


Development/Libraries/Perl

This module implements the Brew edit distance that is very close to the dynamic programming technique used for the Wagner-Fischer (and so for the Levenshtein) edit distance. Please look at the module references below. For more information about the Brew edit distance see: <http://ling.ohio-state.edu/~cbrew/795M/string-distance.html>

The difference here is that you have separated costs for the DELetion and INSertion operations (but with the default to 1 for both, you obtain the Levenshtein edit distance). But the most interesting feature is that you can obtain the description of the edits needed to transform the first string into the second one (not vice versa: here DELetions are separated from INSertions). The difference from the original algorithm by Chris Brew is that I have added the SUBST operation, making it different from MATCH operation.

The symbols used here are:

INITIAL that is the INITIAL operation (i.e. NO operation) MATCH that is the MATCH operation (0 is the default cost) SUBST that is the SUBSTitution operation (1 is the default cost) DEL that is the DELetion operation (1 is the default cost) INS that is the INSertion operation (1 is the default cost)

and you can change the default costs (see below).

You can make INS and DEL the same operation in a simple way:

  1. give both the same cost
  2. change the output string DEL to INS/DEL (o whatever)
  3. change the output string INS to INS/DEL (o whatever)

License: GPL-2.0+ or Artistic-1.0
URL: http://search.cpan.org/dist/Text-Brew/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.02-bp155.2.10 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Text-Brew
0.02-bp154.1.26 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Text-Brew
0.02-bp153.1.15 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Text-Brew
0.02-bp152.3.15 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Text-Brew
0.02-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Text-Brew
0.02-bp151.2.14 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Text-Brew
0.02-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Text-Brew