use Lingua::PT::Inflect; $plural = sing2plural('programador') # now holds 'programadores'
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?)
Several words are exceptions to the rules; there is a file of those words that need to be checked.
More tools for the Portuguese language processing can be found at the Natura project: http://natura.di.uminho.pt
Jose Castro, <cog@cpan.org>
<cog@cpan.org>
Copyright 2004 Jose Castro, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '-ão'. Assuming CP1252
To install Lingua::PT::Inflect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::PT::Inflect
CPAN shell
perl -MCPAN -e shell install Lingua::PT::Inflect
For more information on module installation, please visit the detailed CPAN module installation guide.