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


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

Index


NAME

Top

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

SYNOPSIS

Top

  use Lingua::PT::Nums2Ords qw/num2ord/;

  $ord = num2ord(20)     # "vigesimo"

  @ord = num2ord(1,2,3)  # qw(primeiro segundo terceiro)

DESCRIPTION

Top

Converts numbers to Portuguese ordinals. Works up to 999.999.999.999 ('novecentos e noventa e nove bilionesimos novecentos e noventa e nove milionesimos novecentos e noventa e nove milesimos nongentesimo nonagesimo nono').

num2ord

This is the only function in the module. It turns a number into an ordinal.

  $ord = num2ord(2)
  # $ord now holds "segundo"

DEPENDENCIES

Top

Lingua::PT::Nums2Words

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-Nums2Ords documentation  | view source Contained in the Lingua-PT-Nums2Ords distribution.