Lingua::Stem::De(3pm)
π Lingua::Stem::De β bestie edition β¨
okay so this is the Lingua::Stem::De(3pm) page from the User Contributed Perl Documentation, and it's literally the German stemming algorithm. like, it takes your German words and gives you back their stems. no cap, that's the whole vibe. π
β¨ SYNOPSIS β¨
use Lingua::Stem::De;
my $stems = Lingua::Stem::De::stem({ -words => $word_list_reference,
-locale => 'de',
-exceptions => $exceptions_hash,
});
that's it, that's the whole entrance. slay. π
π¦ DESCRIPTION π¦
so what this routine does is it applies a stemming algorithm to an anon array of German words that you pass in, and it hands you back the stemmed words as an anon array. iconic behavior honestly.
it's a "convenience" wrapper for Text::German β the way it gives you a standardized interface and caching? obsessed. π«Ά
πΈ CHANGES πΈ
changelog time, bestie, let's go:
2.312020.09.26β fix for a Latin1/UTF8 issue in the documentation2.302020.06.20β version renumber for module consistency1.012003.09.28β documentation fix1.002003.04.05β initial release (a legend was born β¨)
β METHODS β
π§ stem({ -words => \@words, -locale => 'de', -exceptions => \%exceptions });
stems a list of passed words using the rules of German. returns an anonymous array reference to the stemmed words. periodt.
example:
my $stemmed_words = Lingua::Stem::De::stem({ -words => \@words,
-locale => 'de',
-exceptions => \%exceptions,
});
π§ stem_caching({ -level => 0|1|2 });
sets the level of stem caching. you get three whole levels, choose your fighter:
'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. bye bye cached stems π
π NOTES π
this code is almost entirely derived from Text::German, written by Ulrich Pfeifer. credit where credit is due, fr fr.
π₯ SEE ALSO π₯
Lingua::StemText::German
π AUTHOR π
Ulrich Pfeifer
integration in Lingua::Stem by Jerilyn Franz, FreeRun Technologies, <cpan@jerilyn.info>
π COPYRIGHT π
Ulrich Pfeifer, Jerilyn Franz, FreeRun Technologies
this code is freely available under the same terms as Perl.
π BUGS π
(the page lists the BUGS section but doesn't say anything under it β so like, no known bugs listed, i guess? slay π)
π TODO π
(also empty on the page β a TODO with nothing in it is such a mood ngl)
π ngl every section above is exactly what's on the page β nothing added, nothing dropped, iykyk.
k bye bestie, go stem some German words π
β cute little sign-off: this was Lingua::Stem::De(3pm), perl v5.42.0, dated 2020-09-27, and yes those facts stay exactly as they are β¨π
π¦ 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