Lingua::Stem::Gl(3pm)

πŸŽ€ Lingua::Stem::Gl πŸŽ€

okay bestie, welcome to the Lingua::Stem::Gl(3pm) page β€” it's a User Contributed Perl Documentation moment, and we're about to stem some Galician words together. No cap.


✨ NAME ✨

Lingua::Stem::Gl β€” stemming algorithm for Galacian. That spelling is exactly what the NAME section says, so I'm not fixing it, bestie πŸ’…


🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this routine applies a stemming algorithm to a passed anon array of Galician words, returning the stemmed words as an anon array. It's literally a 'convienence' wrapper for 'Lingua::Stemmer::GL' that provides a standardized interface and caching. Standardized interface and caching?? obsessed ✨


πŸ”₯ CHANGES πŸ”₯

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

πŸ’… METHODS πŸ’…

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

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

Example:

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

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

Sets the level of stem caching.

  • '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


πŸ“ NOTES πŸ“

This code is a wrapper around Lingua::Stemmer::GL written by xern <xern@cpan.org>


πŸ‘€ SEE ALSO πŸ‘€

Go check out both besties: Lingua::Stem and Lingua::Stemmer::GL β€” the original line is exactly Lingua::Stem Lingua::Stemmer::GL; so yes, both are in the chat πŸ’¬


πŸ’– 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 πŸ“


that's the whole page, bestie β€” source/version is perl v5.42.0 and the date is 2020-09-27. slay πŸ’…βœ¨

πŸ“¦ where this page comes from