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


NAME

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

Back to Top


SYNOPSIS

    my $stemmer = KinoSearch::Analysis::Stemmer->new( language => 'es' );
    
    my $polyanalyzer = KinoSearch::Analysis::PolyAnalyzer->new(
        analyzers => [ $lc_normalizer, $tokenizer, $stemmer ],
    );

Back to Top


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.

Back to Top


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.

Back to Top


COPYRIGHT

Copyright 2005-2006 Marvin Humphrey

Back to Top


LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch version 0.15.

Back to Top

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