Text-LevenshteinXS reviews


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

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.)

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


1 hidden unhelpful review