José Alves de Castro > Lingua-PT-Ords2Nums-0.07 > Lingua::PT::Ords2Nums

Download:
Lingua-PT-Ords2Nums-0.07.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.07   Source  

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 ^

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.

syntax highlighting: