José Alves de Castro

NAME

Lingua::PT::Ords2Nums - Converts Portuguese ordinals to numbers

SYNOPSIS

  use Lingua::PT::Ords2Nums qw/ord2num/;

  $num = word2num('décimo primeiro')   # 11

DESCRIPTION

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').

ord2num

Turns an ordinal number into a regular number (decimal).

  $num = word2num('segundo')
  # $num now holds 2

DEPENDENCIES

Lingua::PT::Words2Nums

TO DO

  • Implement function isord()

SEE ALSO

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

AUTHOR

Jose Castro, <cog@cpan.org>

COPYRIGHT & LICENSE

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:

Around line 34:

Non-ASCII character seen before =encoding in 'word2num('décimo'. Assuming ISO8859-1