1Ru(3)                 User Contributed Perl Documentation                Ru(3)
2
3
4

NAME

6       Lingua::Stem::Ru - Porter's stemming algorithm for Russian (KOI8-R
7       only)
8

SYNOPSIS

10           use Lingua::Stem::Ru;
11           my $stems = Lingua::Stem::Ru::stem({ -words => $word_list_reference,
12                                                -locale => 'ru',
13                                                -exceptions => $exceptions_hash,
14                                             });
15
16           my $stem = Lingua::Stem::Ru::stem_word( $word );
17

DESCRIPTION

19       This module applies the Porter Stemming Algorithm to its parameters,
20       returning the stemmed words.
21
22       The algorithm is implemented exactly as described in:
23
24           http://snowball.tartarus.org/russian/stemmer.html
25
26       The code is carefully crafted to work in conjunction with the
27       Lingua::Stem module by Benjamin Franz. This stemmer is also based on
28       the work of Aldo Capini, see Lingua::Stem::It.
29

METHODS

31       stem({ -words => \@words, -locale => 'ru', -exceptions => \%exceptions
32       });
33           Stems a list of passed words. Returns an anonymous list reference
34           to the stemmed words.
35
36           Example:
37
38             my $stemmed_words = Lingua::Stem::Ru::stem({ -words => \@words,
39                                                         -locale => 'ru',
40                                                     -exceptions => \%exceptions,
41                                     });
42
43       stem_word( $word );
44           Stems a single word and returns the stem directly.
45
46           Example:
47
48             my $stem = Lingua::Stem::Ru::stem_word( $word );
49
50       stem_caching({ -level => 0|1|2 });
51           Sets the level of stem caching.
52
53           '0' means 'no caching'. This is the default level.
54
55           '1' means 'cache per run'. This caches stemming results during a
56           single
57               call to 'stem'.
58
59           '2' means 'cache indefinitely'. This caches stemming results until
60               either the process exits or the 'clear_stem_cache' method is
61           called.
62
63       clear_stem_cache;
64           Clears the cache of stemmed words
65
66   EXPORT
67       None by default.
68

HISTORY

70       ยท       0.01 (2004-05-21)
71

AUTHOR

73       Aleksandr Guidrevitch <pillgrim@mail.ru>
74

SEE ALSO

76        Lingua::Stem
77
79       Copyright (C) 2003 by Aldo Calpini <dada@perl.it>
80
81       Copyright (C) 2004 by Aleksandr Guidrevitch <pillgrim@mail.ru>
82
83       This software may be freely copied and distributed under the same terms
84       and conditions as Perl itself, either Perl version 5.8.3 or, at your
85       option, any later version of Perl 5 you may have available..
86
87
88
89perl v5.12.1                      2004-05-21                             Ru(3)
Impressum