perldoc > Lingua::Stem::Sv

πŸ“› NAME

Lingua::Stem::Sv - Stemming algorithm for Swedish

πŸš€ Quick Reference

Use CaseCommandDescription
Stem words$stems = Lingua::Stem::Sv::stem({ -words => \@words, -locale => 'sv' })Stem a list of Swedish words
Enable per‑run cachingLingua::Stem::Sv::stem_caching({ -level => 1 })Cache results during a single call
Enable indefinite cachingLingua::Stem::Sv::stem_caching({ -level => 2 })Cache until process exit or clear
Clear cacheLingua::Stem::Sv::clear_stem_cache()Clear the stem cache

πŸ“– SYNOPSIS

use Lingua::Stem::Sv;
my $stems = Lingua::Stem::Sv::stem({ -words => $word_list_reference,
                                     -locale => 'sv',
                                     -exceptions => $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 is a 'convienence' wrapper for 'Lingua::Stem::Snowball::Se' that provides a standardized interface and caching.

πŸ“Œ CHANGES

βš™οΈ 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.

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.

'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::Stem::Snowball::Sv written by Ask Solem Hoel, <ask AT unixmonks.net>

πŸ”— SEE ALSO

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

✍️ AUTHOR

Integration in Lingua::Stem by Jerilyn Franz

©️ COPYRIGHT

Jerilyn Franz

πŸ› BUGS

(No known bugs)

πŸ“‹ TODO

(No todo items)

Lingua::Stem::Sv
πŸ“› NAME πŸš€ Quick Reference πŸ“– SYNOPSIS πŸ“ DESCRIPTION πŸ“Œ CHANGES βš™οΈ METHODS
🌱 stem({ -words => \@words, -locale => 'sv', -exceptions => \%exceptions }) πŸ’Ύ stem_caching({ -level => 0|1|2 }) 🧹 clear_stem_cache
πŸ“ NOTES πŸ”— SEE ALSO ✍️ AUTHOR ©️ COPYRIGHT πŸ› BUGS πŸ“‹ TODO

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 05:27 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format