# perldoc > Lingua::Stem::Sv

---
type: CommandReference
command: Lingua::Stem::Sv
mode: perldoc
section: 
source: perldoc
---
## Quick Reference
- `my $stems = Lingua::Stem::Sv::stem({ -words => \@words, -locale => 'sv', -exceptions => \%exceptions });` — Stem a list of Swedish words.
- `Lingua::Stem::Sv::stem_caching(1);` — Enable per-run caching for speed.
- `Lingua::Stem::Sv::clear_stem_cache();` — Clear the stem cache.

## Name
Lingua::Stem::Sv — Stemming algorithm for Swedish

## Synopsis
perl
use Lingua::Stem::Sv;
my $stems = Lingua::Stem::Sv::stem({ -words => \@words,
                                     -locale => 'sv',
                                     -exceptions => \%exceptions,
                                   });
## Options
- `-words => \@words` — reference to an array of words to stem.
- `-locale => 'sv'` — sets the locale to Swedish (required).
- `-exceptions => \%exceptions` — optional hash of exception mappings.

## Functions
- `stem(\%params)` — stems a list of Swedish words, returns an arrayref of stemmed words. Accepts a hashref with keys: `-words`, `-locale`, `-exceptions`.
- `stem_caching($level)` — sets caching level: 0 (none, default), 1 (per-run), 2 (indefinite). Returns nothing.
- `clear_stem_cache()` — clears the stem cache. Useful when caching is set to 2.

## Examples
perl
my $stemmed_words = Lingua::Stem::Sv::stem({ -words => \@words,
                                              -locale => 'sv',
                                              -exceptions => \%exceptions,
                                            });
## See Also
- [Lingua::Stem](http://localhost/phpMan.php/perldoc/Lingua%3A%3AStem/markdown)
- [Lingua::Stem::Snowball::Sv](http://localhost/phpMan.php/perldoc/Lingua%3A%3AStem%3A%3ASnowball%3A%3ASv/markdown)