Lingua::Stem::Da(3pm)
π Lingua::Stem::Da β the Danish stemmer, bestie π
okay so this is a page from the User Contributed Perl Documentation for Lingua::Stem::Da(3pm) β yes that's the whole manual name, it's a whole vibe. Sit down, we're learning Danish stemming together β¨
πΈ NAME πΈ
Lingua::Stem::Da β the stemming algorithm for Danish, periodt π
π SYNOPSIS π
like, here's the whole thing you actually type, no cap:
use Lingua::Stem::Da;
my $stems = Lingua::Stem::Da::stem({ -words => $word_list_reference,
-locale => 'da',
-exceptions => $exceptions_hash,
});
that's it. that's the whole entry point. slay π¦
π DESCRIPTION π
so this routine applies a stemming algorithm to an anon array of Danish words that you pass in, and it hands you back the stemmed words as an anon array. simple as that, bestie.
it's a "convenience" wrapper for Lingua::Stem::Snowball::Da, and what it gives you on top is a standardized interface plus caching. that's the whole point. iykyk π«Ά
π CHANGES π
the lore, chronologically β oldest at the bottom because that's how it's written:
- 2.31
2020.09.26β fix for a Latin1/UTF8 issue in the documentation π - 2.30
2020.06.20β version renumber for module consistency π’ - 1.01
2003.09.28β documentation fix - 1.00
2003.04.05β initial release π
the way this module has been around since 2003β¦ iconic.
β¨ METHODS β¨
π« stem({ -words => \@words, -locale => 'da', -exceptions => \%exceptions });
stems a list of passed words using the rules of Danish. returns an anonymous array reference to the stemmed words. main character energy tbh π
example β literally copy this:
my $stemmed_words = Lingua::Stem::Da::stem({ -words => \@words,
-locale => 'da',
-exceptions => \%exceptions,
});
π§ stem_caching({ -level => 0|1|2 });
sets the level of stem caching. three levels, pick your fighter:
'0'means 'no caching'. this is the default level. it's giving minimal effort but honestly same π«'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. that's it. fresh start, clean slate, new era π
π¦ NOTES π¦
this code is a wrapper around Lingua::Stem::Snowball::Da, written by:
Dennis Haney <davh@davh.dk>
and
Ask Solem Hoel, <ask@unixmonks.net> (Swedish version)
shoutout to the og authors, we love credit where credit's due π«Ά
β SEE ALSO β
go look at these too, bestie:
Lingua::StemLingua::Stem::Snowball::Da
π 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
(yeah. that's the entire bugs section. it's giving "we'll deal with it later" and honestly? relatable ππ)
and that's the whole page, bestie!! π§π it's from perl v5.42.0, dated 2020-09-27, and it lives at Lingua::Stem::Da(3pm) in the User Contributed Perl Documentation β go stem some Danish words, you've got this π
β¨πΈ
π¦ 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