| Lingua-PT-Ords2Nums documentation | view source | Contained in the Lingua-PT-Ords2Nums distribution. |
Lingua::PT::Ords2Nums - Converts Portuguese ordinals to numbers
use Lingua::PT::Ords2Nums qw/ord2num/;
$num = word2num('décimo primeiro') # 11
Converts Portuguese ordinals to numbers. Works up to 999.999.999.999 ('novecentos e noventa e nove bilionésimos novecentos e noventa e nove milionésimos novecentos e noventa e nove milésimos nongentésimo nonagésimo nono').
Turns an ordinal number into a regular number (decimal).
$num = word2num('segundo')
# $num now holds 2
Lingua::PT::Words2Nums
More tools for the Portuguese language processing can be found at the Natura project: http://natura.di.uminho.pt
Jose Castro, <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.
| Lingua-PT-Ords2Nums documentation | view source | Contained in the Lingua-PT-Ords2Nums distribution. |