RSS | Module Info | Add a review of Text-LevenshteinXS

0 out of 3 found this review helpful:

Text-LevenshteinXS (0.03) *****

Love it! Any chance for adding custom weights in the future?

Tomasz - 2010-06-04T12:02:59

Was this review helpful to you?  Yes No
5 out of 10 found this review helpful:

Text-LevenshteinXS (0.03) **

This module doesn't handle UTF-8 encoded strings correctly. It only works on ASCII.

(I tried to put an example here but cpanratings turned all of the bytes into html entities. Please replace "some unicode" and "some other unicode" with two strings in UTF-8 separated by one character difference.)

#!/home/ben/software/install/bin/perl
use warnings;
use strict;
use utf8;
use Text::LevenshteinXS qw/distance/;
print distance ("<some unicode>", "<some other unicode>"), " ", distance ("saru", "sagru"), "\n";

which should print 1 1 but prints 3 1

See also

rt.cpan.org/Public/Bug/Display.html?i...

Ben Bullock - 2010-03-28T21:37:23

Was this review helpful to you?  Yes No


the camel