1Lingua::Stem::Ru(3)   User Contributed Perl Documentation  Lingua::Stem::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/algorithms/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

AUTHOR

70       Aleksandr Guidrevitch <pillgrim@mail.ru>
71

REPOSITORY

73       <https://github.com/neilb/Lingua-Stem-Ru>
74

SEE ALSO

76       Lingua::Stem
77           provides an interface for some other pure Perl stemmers available
78           on CPAN, including Lingua::Stem::Ru
79
80       Lingua::Stem::Snowball
81       Lingua::Stem::Any
82
84       Copyright (C) 2003 by Aldo Calpini <dada@perl.it>
85
86       Copyright (C) 2004 by Aleksandr Guidrevitch <pillgrim@mail.ru>
87
88       This is free software; you can redistribute it and/or modify it under
89       the same terms as the Perl 5 programming language system itself.
90
91
92
93perl v5.38.0                      2023-07-20               Lingua::Stem::Ru(3)
Impressum