It(3)
β¨ NAME β¨
okay so this is the It(3) page, bestie β a User Contributed Perl Documentation moment π
β and the module is Lingua::Stem::It - Porter's stemming algorithm for Italian. no cap, that's the whole name-section vibe π
π SYNOPSIS π
use Lingua::Stem::It;
my $stems = Lingua::Stem::It::stem({ -words => $word_list_reference,
-locale => 'it',
-exceptions => $exceptions_hash,
});
my $stem = Lingua::Stem::It::stem_word( $word );
π DESCRIPTION π
This module runs the Porter Stemming Algorithm on whatever you pass in and gives you back the stemmed words. literally its whole job, and it ate β¨
The algorithm is implemented exactly (or at least, I hope :-) as described here:
http://snowball.tartarus.org/algorithms/italian/stemmer.html
The code is carefully crafted to work in conjunction with the Lingua::Stem module by Benjamin Franz, and some functionalities (caching and exception list) are borrowed from it too. iconic behavior π«Ά
π¦ METHODS π¦
πΈ stem({ -words => \@words, -locale => 'it', -exceptions => \%exceptions }); πΈ
Stems a list of passed words. Returns an anonymous list reference to the stemmed words. it's giving "group project but the group actually works" π
Example:
my $stemmed_words = Lingua::Stem::It::stem({ -words => \@words,
-locale => 'it',
-exceptions => \%exceptions,
});
π stem_word( $word ); π
Stems a single word and returns the stem directly. one word in, stem out, no extra drama π
Example:
my $stem = Lingua::Stem::It::stem_word( $word );
π§ 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. spring cleaning but for stems πΈ
π EXPORT π
None by default.
π AUTHOR π
Aldo Calpini, dada@perl.it
π SEE ALSO π
Lingua::Stem
π COPYRIGHT π
Copyright (c) Aldo Calpini, dada@perl.it. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
okay bestie, that's the whole It(3) page π
β footer energy: perl v5.42.0, dated 2014-12-03, manual It(3). byeee π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Lingua-Stem-It 0.02-bp160.1.11 Β· GPL-1.0+ or Artistic-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms