KinoSe...temmer(3pm)

✨ NAME ✨

KinoSearch1::Analysis::Stemmer β€” bestie, this is the thing that reduces related words down to one shared root πŸ’–

(Also hey, hi, this page lives in the User Contributed Perl Documentation, it's a 3pm manual, and yes we are gonna make stemming make sense, i promise 🫢)


🌸 SYNOPSIS 🌸

my $stemmer = KinoSearch1::Analysis::Stemmer->new( language => 'es' );

my $polyanalyzer = KinoSearch1::Analysis::PolyAnalyzer->new(
    analyzers => [ $lc_normalizer, $tokenizer, $stemmer ],
);

Look at that. Three little analyzers, one iconic pipeline. Slay. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the whole vibe: stemming takes words and shrinks them down to a root form. Like, "horse", "horses", and "horsing" all just become "hors" πŸ’€ β€” which is the point, because then when somebody searches for 'horse', the search also matches documents that contain 'horses' and 'horsing'. No cap, that's the whole magic trick. ✨

This class is a wrapper around Lingua::Stem::Snowball, so it supports the same languages. Whatever Snowball can do, this can do. Periodt. πŸ‘‘


πŸŽ€ METHODS πŸŽ€

🌈 new

Create a new stemmer, queen. It takes a single named parameter, language, and that has to be an ISO two-letter code that Lingua::Stem::Snowball understands. Not a vibe, not a guess β€” an actual code. πŸ™ˆ


Copyright 2005-2010 Marvin Humphrey


πŸ‘‘ LICENSE, DISCLAIMER, BUGS, etc. πŸ‘‘

See KinoSearch1 version 1.01.


And that's a wrap, bestie πŸŽ€ this page comes to you from perl v5.42.3 and it was dated 2026-08-20, printed as KinoSe...temmer(3pm). Go forth and stem responsibly πŸ§šπŸ’–

πŸ“¦ where this page comes from