Lingua::PT::Inflect - Converts Portuguese words from singular to plural


Lingua-PT-Inflect documentation  | view source Contained in the Lingua-PT-Inflect distribution.

Index


NAME

Top

Lingua::PT::Inflect - Converts Portuguese words from singular to plural

SYNOPSIS

Top

  use Lingua::PT::Inflect;

  $plural = sing2plural('programador')   # now holds 'programadores'

DESCRIPTION

Top

Converts Portuguese words from singular to plural. There may be some special cases that will fail (words ending in -ão or -s might fail, as many special cases are yet to be prevented; anyone volunteering to look at a huge list of words?)

METHODS

Top

new

Creates a new Lingua::PT::Inflect object.

If you're doing this lots of time, it would probably be better for you to use the sing2plural function directly (that is, creating a new object for each word in a long text doesn't seem so bright if you're not going to use it later on).

sing2plural

Converts a word in the singular gender to plural.

  $plural = sing2plural($singular);

TO DO

Top

* Several words are exceptions to the rules; there is a file of those words that need to be checked.

SEE ALSO

Top

More tools for the Portuguese language processing can be found at the Natura project: http://natura.di.uminho.pt

AUTHOR

Top

Jose Castro, <cog@cpan.org>

COPYRIGHT & LICENSE

Top


Lingua-PT-Inflect documentation  | view source Contained in the Lingua-PT-Inflect distribution.