1Lucy::Analysis::SnowbalUlsSetremCmoenrt(r3i)buted Perl DLouccuym:e:nAtnaatliyosnis::SnowballStemmer(3)
2
3
4

NAME

6       Lucy::Analysis::SnowballStemmer - Reduce related words to a shared
7       root.
8

SYNOPSIS

10           my $stemmer = Lucy::Analysis::SnowballStemmer->new( language => 'es' );
11
12           my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new(
13               analyzers => [ $tokenizer, $normalizer, $stemmer ],
14           );
15
16       This class is a wrapper around the Snowball stemming library, so it
17       supports the same languages.
18

DESCRIPTION

20       SnowballStemmer is an Analyzer which reduces related words to a root
21       form (using the XSnowballX stemming library).  For instance, XhorseX,
22       XhorsesX, and XhorsingX all become XhorsX X so that a search for
23       XhorseX will also match documents containing XhorsesX and XhorsingX.
24

CONSTRUCTORS

26   new
27           my $stemmer = Lucy::Analysis::SnowballStemmer->new( language => 'es' );
28
29       Create a new SnowballStemmer.
30
31language - A two-letter ISO code identifying a language supported
32           by Snowball.
33

METHODS

35   transform
36           my $inversion = $snowball_stemmer->transform($inversion);
37
38       Take a single Inversion as input and returns an Inversion, either the
39       same one (presumably transformed in some way), or a new one.
40
41inversion - An inversion.
42

INHERITANCE

44       Lucy::Analysis::SnowballStemmer isa Lucy::Analysis::Analyzer isa
45       Clownfish::Obj.
46
47
48
49perl v5.32.1                      2021-01-27Lucy::Analysis::SnowballStemmer(3)
Impressum