1Lingua::Stem::Gl(3)   User Contributed Perl Documentation  Lingua::Stem::Gl(3)
2
3
4

NAME

6       Lingua::Stem::Gl - Stemming algorithm for Galacian
7

SYNOPSIS

9           use Lingua::Stem::Gl;
10           my $stems   = Lingua::Stem::Gl::stem({ -words => $word_list_reference,
11                                                 -locale => 'gl',
12                                             -exceptions => $exceptions_hash,
13                                            });
14

DESCRIPTION

16       This routine applies a stemming algorithm to a passed anon array of
17       Galician words, returning the stemmed words as an anon array.
18
19       It is a 'convienence' wrapper for 'Lingua::Stemmer::GL' that provides a
20       standardized interface and caching.
21

CHANGES

23       2.31 2020.09.26 - Fix for Latin1/UTF8 issue in documentation
24
25       2.30 2020.06.20 - Version renumber for module consistency
26
27       1.02 2004.04.26 - Documenation fix
28
29       1.01 2003.09.28 - Documentation fix
30
31       1.00 2003.04.05 - Initial release
32

METHODS

34       stem({ -words => \@words, -locale => 'gl', -exceptions => \%exceptions
35       });
36           Stems a list of passed words using the rules of Galican. Returns an
37           anonymous list reference to the stemmed words.
38
39           Example:
40
41             my $stemmed_words = Lingua::Stem::Gl::stem({ -words => \@words,
42                                                         -locale => 'gl',
43                                                     -exceptions => \%exceptions,
44                                     });
45
46       stem_caching({ -level => 0|1|2 });
47           Sets the level of stem caching.
48
49           '0' means 'no caching'. This is the default level.
50
51           '1' means 'cache per run'. This caches stemming results during a
52           single
53               call to 'stem'.
54
55           '2' means 'cache indefinitely'. This caches stemming results until
56               either the process exits or the 'clear_stem_cache' method is
57           called.
58
59       clear_stem_cache;
60           Clears the cache of stemmed words
61

NOTES

63       This code is a wrapper around Lingua::Stemmer::GL written by xern
64       <xern@cpan.org>
65

SEE ALSO

67        Lingua::Stem Lingua::Stemmer::GL;
68

AUTHOR

70         Integration in Lingua::Stem by
71         Jerilyn Franz, FreeRun Technologies,
72         <cpan@jerilyn.info>
73
75       Jerilyn Franz, FreeRun Technologies
76
77       This code is freely available under the same terms as Perl.
78

BUGS

TODO

81perl v5.32.1                      2021-01-27               Lingua::Stem::Gl(3)
Impressum