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

NAME

6       Lingua::Stem::No - Stemming algorithm for Danish
7

SYNOPSIS

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

DESCRIPTION

16       This routine applies a stemming slgorithm to a passed anon array of
17       Norwegian words, returning the stemmed words as an anon array.
18
19       It is a 'convienence' wrapper for 'Lingua::Stem::Snowball::No' that
20       provides a 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.01 2003.09.28 - Documenation fix
28
29       1.00 2003.04.05 - Initial release
30

METHODS

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

NOTES

61       This code is a wrapper around Lingua::Stem::Snowball::No written by Ask
62       Solem Hoel, <ask@unixmonks.net>
63

SEE ALSO

65        Lingua::Stem Lingua::Stem::Snowball::No
66

AUTHOR

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

BUGS

TODO

79perl v5.34.0                      2021-07-22               Lingua::Stem::No(3)
Impressum