Lingua::Stem::Sv(3pm)

✨ Lingua::Stem::Sv(3pm) β€” Swedish stemming, bestie ✨

Okay so this is the manual page for Lingua::Stem::Sv, and it is literally the stemming algorithm for Swedish. No cap. πŸ’…

🌸 NAME 🌸

Lingua::Stem::Sv β€” Stemming algorithm for Swedish. That's the whole vibe: Swedish words go in, stems come out.

✨ SYNOPSIS ✨

           use Lingua::Stem::Sv;
           my $stems   = Lingua::Stem::Sv::stem({ -words => $word_list_reference,
                                                 -locale => 'sv',
                                             -exceptions => $exceptions_hash,
                                            });

Like, that's the group-chat invite: bring your words, locale 'sv', and exceptions hash. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This routine applies a stemming algorithm to a passed anon array of Swedish words, returning the stemmed words as an anon array. 😭

It's a 'convienence' wrapper for Lingua::Stem::Snowball::Se that provides a standardized interface and caching. That's the whole tea. πŸŽ€

πŸŽ€ CHANGES πŸŽ€

  • 2.31 2020.09.26 β€” Fix for Latin1/UTF8 issue in documentation
  • 2.30 2020.06.20 β€” Version renumbering for module consistency
  • 1.01 2003.09.28 β€” Documentation fix
  • 1.00 2003.04.05 β€” Initial release

All the lore, preserved. πŸ’–

πŸ’… METHODS πŸ’…

🌈 stem({ -words => \@words, -locale => 'sv', -exceptions => \%exceptions }); 🌈

Stems a list of passed words using the rules of Swedish. Returns an anonymous array reference to the stemmed words. Slay.

Example:

             my $stemmed_words = Lingua::Stem::Sv::stem({ -words => \@words,
                                                         -locale => 'sv',
                                                     -exceptions => \%exceptions,
                                     });

πŸ“ stem_caching({ -level => 0|1|2 }); πŸ“

Sets the level of stem caching. The level choices are literally:

  • '0' means 'no caching'. This is the default level. Big "we're chilling" energy.
  • '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, bestie. ✨

πŸ‘‘ NOTES πŸ‘‘

This code is a wrapper around Lingua::Stem::Snowball::Sv written by Ask Solem Hoel, <ask@unixmonks.net>. Keep that name and email exactly, okay? 🫢

πŸ”₯ SEE ALSO πŸ”₯

  • Lingua::Stem
  • Lingua::Stem::Snowball::Sv

🌸 AUTHOR 🌸

Integration in Lingua::Stem by Jerilyn Franz. Periodt. πŸ’–

Jerilyn Franz

πŸ’€ BUGS πŸ’€

TODO

That's it. That's the bug list. We love a to-do list with main character energy. 😭


πŸ’– Later, bestie β€” this was Lingua::Stem::Sv(3pm) from perl v5.42.0, dated 2020-09-27. πŸ’–

πŸ“¦ where this page comes from