1Lingua::Stem::Sv(3pm) User Contributed Perl DocumentationLingua::Stem::Sv(3pm)
2
3
4
6 Lingua::Stem::Sv - Stemming algorithm for Swedish
7
9 use Lingua::Stem::Sv;
10 my $stems = Lingua::Stem::Sv::stem({ -words => $word_list_reference,
11 -locale => 'sv',
12 -exceptions => $exceptions_hash,
13 });
14
16 This routine applies a stemming slgorithm to a passed anon array of
17 Swedish words, returning the stemmed words as an anon array.
18
19 It is a 'convienence' wrapper for 'Lingua::Stem::Snowball::Se' that
20 provides a standardized interface and caching.
21
23 2.31 2020.09.26 - Fix for Latin1/UTF8 issue in documentation
24
25 2.30 2020.06.20 - Version renumbering for module consistency
26
27 1.01 2003.09.28 - Documentation fix
28
29 1.00 2003.04.05 - Initial release
30
32 stem({ -words => \@words, -locale => 'sv', -exceptions => \%exceptions
33 });
34 Stems a list of passed words using the rules of Swedish. Returns an
35 anonymous array reference to the stemmed words.
36
37 Example:
38
39 my $stemmed_words = Lingua::Stem::Sv::stem({ -words => \@words,
40 -locale => 'sv',
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
61 This code is a wrapper around Lingua::Stem::Snowball::Sv written by Ask
62 Solem Hoel, <ask@unixmonks.net>
63
65 Lingua::Stem Lingua::Stem::Snowball::Sv
66
68 Integration in Lingua::Stem by Jerilyn Franz
69
71 Jerilyn Franz
72
75perl v5.38.0 2023-07-20 Lingua::Stem::Sv(3pm)