Lingua::Stem::Ru(3)
π NAME π
Lingua::Stem::Ru is the page for Porter's stemming algorithm for Russian, and bestie, it is KOI8-R only β periodt. π
This one comes from User Contributed Perl Documentation, and it's here to stem Russian words with main-character energy. β¨
β¨ SYNOPSIS β¨
Use it like this, bestie:
use Lingua::Stem::Ru;
my $stems = Lingua::Stem::Ru::stem({ -words => $word_list_reference,
-locale => 'ru',
-exceptions => $exceptions_hash,
});
my $stem = Lingua::Stem::Ru::stem_word( $word );
πΈ DESCRIPTION πΈ
This module applies the Porter Stemming Algorithm to its parameters, returning the stemmed words. Slay. π
The algorithm is implemented exactly as described in:
http://snowball.tartarus.org/algorithms/russian/stemmer.html
The code is carefully crafted to work in conjunction with the Lingua::Stem module by Benjamin Franz. This stemmer is also based on the work of Aldo Capini, see Lingua::Stem::It. π§
π METHODS π
Okay bestie, here's the method lore. π«Ά
π
stem({ -words => \@words, -locale => 'ru', -exceptions => \%exceptions }); π
Stems a list of passed words. Returns an anonymous list reference to the stemmed words. Iconic. β¨
Example:
my $stemmed_words = Lingua::Stem::Ru::stem({ -words => \@words,
-locale => 'ru',
-exceptions => \%exceptions,
});
π¦ stem_word( $word ); π¦
Stems a single word and returns the stem directly. No extra drama. π
Example:
my $stem = Lingua::Stem::Ru::stem_word( $word );
π stem_caching({ -level => 0|1|2 }); π
Sets the level of stem caching. Vibe check for the cache, basically. π
'0'β means'no caching'. This is the default level.'1'β means'cache per run'. This caches stemming results during a single call to'stem'.'2'β means'cache indefinitely'. This caches stemming results until either the process exits or the'clear_stem_cache'method is called.
π clear_stem_cache; π
Clears the cache of stemmed words. Fresh start energy. β¨
π EXPORT π
None by default. That's it, bestie. π«Ά
π¦ AUTHOR π¦
Aleksandr Guidrevitch <pillgrim@mail.ru> β love that for him. π
π REPOSITORY π
<https://github.com/neilb/Lingua-Stem-Ru> β go off, repo. π«Ά
π SEE ALSO π
Lingua::Stemβ provides an interface for some other pure Perl stemmers available on CPAN, includingLingua::Stem::RuLingua::Stem::SnowballLingua::Stem::Any
π COPYRIGHT AND LICENSE π
Copyright (C) 2003 by Aldo Calpini <dada@perl.it>
Copyright (C) 2004 by Aleksandr Guidrevitch <pillgrim@mail.ru>
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay bestie, that's the whole Lingua::Stem::Ru saga π β perl v5.42.0, dated 2016-02-13, signing off with a stem and a smile π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Lingua-Stem-Ru 0.04-bp160.1.11 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms