Scroll to navigation

Lingua::Stem::No(3pm) User Contributed Perl Documentation Lingua::Stem::No(3pm)

NAME

Lingua::Stem::No - Stemming algorithm for Danish

SYNOPSIS

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

DESCRIPTION

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

It is a 'convienence' wrapper for 'Lingua::Stem::Snowball::No' that provides a standardized interface and caching.

CHANGES

2.31 2020.09.26 - Fix for Latin1/UTF8 issue in documentation

2.30 2020.06.20 - Version renumber for module consistency

1.01 2003.09.28 - Documenation fix

1.00 2003.04.05 - Initial release

METHODS

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::No::stem({ -words => \@words,
                                              -locale => 'no',
                                          -exceptions => \%exceptions,
                          });
    
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.

Clears the cache of stemmed words

NOTES

This code is a wrapper around Lingua::Stem::Snowball::No written by Ask Solem Hoel, <ask@unixmonks.net>

SEE ALSO

 Lingua::Stem Lingua::Stem::Snowball::No

AUTHOR

  Integration in Lingua::Stem 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

2024-05-16 perl v5.38.2