logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

KinoSearch1::Analysis::Stemmer - reduce related words to a shared root

Description

       Stemming reduces words to a root form.  For instance, "horse", "horses", and "horsing" all become "hors"
       -- so that a search for 'horse' will also match documents containing 'horses' and 'horsing'.

       This class is a wrapper around Lingua::Stem::Snowball, so it supports the same languages.

License, Disclaimer, Bugs, Etc.

       See KinoSearch1 version 1.01.

perl v5.40.0                                       2024-10-20                KinoSearch1::Analysis::Stemmer(3pm)

Methods

new
       Create a new stemmer.  Takes a single named parameter, "language", which must be an ISO two-letter code
       that Lingua::Stem::Snowball understands.

Name

       KinoSearch1::Analysis::Stemmer - reduce related words to a shared root

Synopsis

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

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

See Also