pizza = pizzeria

This commit is contained in:
sergiotarxz 2023-09-07 20:00:25 +02:00
parent 0995495e88
commit d8971679f2

View File

@ -25,6 +25,7 @@ sub normalize($self, $text) {
my $stemmer = Lingua::Stem::Snowball->new( lang => 'es' );
$stemmer->stem_in_place(\@words);
$decomposed = join " ", @words;
$decomposed =~ s/\bpizzeri\b/pizz/g;
return $decomposed;
}