1Lucy::Analysis::SnowbalUlsSetremCmoenrt(r3ipbmu)ted PerlLuDcoyc:u:mAennatlaytsiiosn::SnowballStemmer(3pm)
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 “Snowball” stemming library).  For instance, “horse”,
22       “horses”, and “horsing” all become “hors” – so that a search for
23       ‘horse’ will also match documents containing ‘horses’ and ‘horsing’.
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.38.0                      2023-07-2L0ucy::Analysis::SnowballStemmer(3pm)
Impressum