# phpman > perldoc > Lingua::Stem::Da

## NAME
    [Lingua::Stem::Da](https://www.chedong.com/phpMan.php/perldoc/Lingua%3A%3AStem%3A%3ADa/markdown) - Stemming algorithm for Danish

## SYNOPSIS
        use [Lingua::Stem::Da](https://www.chedong.com/phpMan.php/perldoc/Lingua%3A%3AStem%3A%3ADa/markdown);
        my $stems   = [Lingua::Stem::Da::stem](https://www.chedong.com/phpMan.php/perldoc/Lingua%3A%3AStem%3A%3ADa%3A%3Astem/markdown)({ -words => $word_list_reference,
                                              -locale => 'da',
                                          -exceptions => $exceptions_hash,
                                         });

## DESCRIPTION
    This routine applies a stemming slgorithm to a passed anon array of Danish words, returning the
    stemmed words as an anon array.

    It is a 'convienence' wrapper for '[Lingua::Stem::Snowball::Da](https://www.chedong.com/phpMan.php/perldoc/Lingua%3A%3AStem%3A%3ASnowball%3A%3ADa/markdown)' that provides a standardized
    interface and caching.

## CHANGES
    2.30 2020.06.20 - Version renumber for module consistency

    1.01 2003.09.28 - Documentation fix.

    1.00 2003.04.05 - Initial release

## METHODS
### stem
        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::Da::stem](https://www.chedong.com/phpMan.php/perldoc/Lingua%3A%3AStem%3A%3ADa%3A%3Astem/markdown)({ -words => \@words,
                                                      -locale => 'da',
                                                  -exceptions => \%exceptions,
                                  });

### stem_caching
        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::Da](https://www.chedong.com/phpMan.php/perldoc/Lingua%3A%3AStem%3A%3ASnowball%3A%3ADa/markdown) written by

    Dennis Haney <<davh@davh.dk>>

    and

    Ask Solem Hoel, <<ask@unixmonks.net>> (Swedish version)

## SEE ALSO
     [Lingua::Stem](https://www.chedong.com/phpMan.php/perldoc/Lingua%3A%3AStem/markdown) [Lingua::Stem::Snowball::Da](https://www.chedong.com/phpMan.php/perldoc/Lingua%3A%3AStem%3A%3ASnowball%3A%3ADa/markdown)

## AUTHOR
      Integration in [Lingua::Stem](https://www.chedong.com/phpMan.php/perldoc/Lingua%3A%3AStem/markdown) by
      Jerilyn Franz, FreeRun Technologies,
      <<cpan@jerilyn.info>>

## COPYRIGHT
    Jerilyn Franz, FreeRun Technologies

    This code is freely available under the same terms as Perl.

## BUGS
## TODO
