From d8971679f24115ab6c0c466a7f83aed6127eb3e8 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Thu, 7 Sep 2023 20:00:25 +0200 Subject: [PATCH] pizza = pizzeria --- lib/BurguillosInfo/IndexUtils.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/BurguillosInfo/IndexUtils.pm b/lib/BurguillosInfo/IndexUtils.pm index a6c78ef..4da0ddb 100644 --- a/lib/BurguillosInfo/IndexUtils.pm +++ b/lib/BurguillosInfo/IndexUtils.pm @@ -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; }