1Lingua::Stem::De(3pm) User Contributed Perl DocumentationLingua::Stem::De(3pm)
2
3
4

NAME

6       Lingua::Stem::De - Stemming algorithm for German
7

SYNOPSIS

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

DESCRIPTION

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

METHODS

32       stem({ -words => \@words, -locale => 'de', -exceptions => \%exceptions
33       });
34           Stems a list of passed words using the rules of German Returns an
35           anonymous array reference to the stemmed words.
36
37           Example:
38
39             my $stemmed_words = Lingua::Stem::De::stem({ -words => \@words,
40                                                         -locale => 'de',
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 almost entirely derived from Text::German written by
62       Ulrich Pfeifer
63

SEE ALSO

65        Lingua::Stem Text::German
66

AUTHOR

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

BUGS

TODO

81perl v5.38.0                      2023-07-20             Lingua::Stem::De(3pm)
Impressum