patch / lingua-stem-any-pm5

Lingua::Stem::Any (Perl 5): Unified interface to any stemmer on CPAN (Perl 5)
https://metacpan.org/pod/Lingua::Stem::Any
Other
4 stars 0 forks source link

Build status Coverage status CPAN version

NAME

Lingua::Stem::Any - Unified interface to any stemmer on CPAN

VERSION

This document describes Lingua::Stem::Any v0.05.

SYNOPSIS

use Lingua::Stem::Any;

# create German stemmer using the default source module
$stemmer = Lingua::Stem::Any->new(language => 'de');

# create German stemmer explicitly using Lingua::Stem::Snowball
$stemmer = Lingua::Stem::Any->new(
    language => 'de',
    source   => 'Lingua::Stem::Snowball',
);

# get stem for word
$stem = $stemmer->stem($word);

# get list of stems for list of words
@stems = $stemmer->stem(@words);

DESCRIPTION

This module aims to provide a simple unified interface to any stemmer on CPAN. It will provide a default available source module when a language is requested but no source is requested.

Attributes

Methods

SEE ALSO

Lingua::Stem::Snowball, Lingua::Stem::UniNE, Lingua::Stem, Lingua::Stem::Patch

AUTHOR

Nick Patch patch@cpan.org

This project is brought to you by Shutterstock. Additional open source projects from Shutterstock can be found at code.shutterstock.com.

COPYRIGHT AND LICENSE

© 2013–2014 Shutterstock, Inc.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.