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::Stem
  • Lingua::Stem::Snowball::No

πŸ‘‘ AUTHOR πŸ‘‘

Integration in Lingua::Stem by Jerilyn Franz, FreeRun Technologies, <cpan@jerilyn.info> πŸ’Œ


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