Lingua::Stem::No(3pm)
π NAME π
Hiii bestie π welcome to the manual page for Lingua::Stem::No(3pm), straight from the User Contributed Perl Documentation shelf. It's the stemming algorithm for Danish β well, that's what the NAME says, anyway. The description says Norwegian words, and the method says Danish rules. The lore is messy, don't @ me π
β¨ SYNOPSIS β¨
Use it like this, no cap:
use Lingua::Stem::No;
my $stems = Lingua::Stem::No::stem({ -words => $word_list_reference,
-locale => 'no',
-exceptions => $exceptions_hash,
});
πΈ DESCRIPTION πΈ
This routine applies a stemming algorithm to a passed anon array of Norwegian words, and returns the stemmed words as an anon array. β¨
It's a 'convienence' wrapper β their spelling, and honestly iconic β for Lingua::Stem::Snowball::No that gives you a standardized interface plus caching. π
π¦ CHANGES π¦
2.31β2020.09.26: fix for the Latin1/UTF8 issue in documentation. π«Ά2.30β2020.06.20: version renumber for module consistency. π1.01β2003.09.28: Documenation fix (their spelling, not mine π ).1.00β2003.04.05: initial release. π
π METHODS π
π stem β the main character
stem({ -words => \@words, -locale => 'no', -exceptions => \%exceptions
});
Stems a list of passed words using the rules of Danish. Returns an anonymous array reference to the stemmed words. π
Example:
my $stemmed_words = Lingua::Stem::No::stem({ -words => \@words,
-locale => 'no',
-exceptions => \%exceptions,
});
π stem_caching β the cache vibe controller
stem_caching({ -level => 0|1|2 });
Sets the level of stem caching. Here's the breakdown, bestie:
'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 β the reset button
clear_stem_cache;
Clears the cache of stemmed words. π§Ήπ
π§ NOTES π§
This code is a wrapper around Lingua::Stem::Snowball::No, written by Ask Solem Hoel, <ask@unixmonks.net> π«Ά
π SEE ALSO π
Lingua::StemLingua::Stem::Snowball::No
π AUTHOR π
Integration in Lingua::Stem by Jerilyn Franz, FreeRun Technologies, <cpan@jerilyn.info> π
π COPYRIGHT π
Jerilyn Franz, FreeRun Technologies.
This code is freely available under the same terms as Perl. π«Ά
π BUGS π
TODO β yes, bestie, the entire bug list is literally TODO. The audacity is iconic. π
Cute sign-off: this page is from perl v5.42.0, dated 2020-09-27, and it belongs to Lingua::Stem::No(3pm) β go stem something and slay π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Lingua-Stem 2.31-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms