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

NAME

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

SYNOPSIS

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

DESCRIPTION

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

METHODS

32       stem({ -words => \@words, -locale => 'da', -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::Da::stem({ -words => \@words,
40                                                         -locale => 'da',
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::Da written by
62
63       Dennis Haney <davh@davh.dk>
64
65       and
66
67       Ask Solem Hoel, <ask@unixmonks.net> (Swedish version)
68

SEE ALSO

70        Lingua::Stem Lingua::Stem::Snowball::Da
71

AUTHOR

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

BUGS

TODO

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