Lingua::POR::Words2Nums - Converts Portuguese words to numbers
use Lingua::POR::Words2Nums qw/word2num/; $result = num2word("cinco"); # $result now holds 5
Word 2 number conversion in POR.
Words2Nums converts Portuguese words to numbers (works with numbers ranging from 0 to 999.999.999.999.999.999).
Not all possible ways to write a number have been implemented (some people write "nove mil novecentos e um", some people write "nove mil, novecentos e um"; Words2Nums currently supports only the first way, without commas; also, the word "biliÃ£o" is supported, but not "bilhÃ£o").
Turns a word into a number
$result = num2word("cinco"); # $result now holds 5
More tools for the Portuguese language processing can be found at the Natura project: http://natura.di.uminho.pt
Jose Castro, <firstname.lastname@example.org>
Maintenance PetaMem s.r.o., <email@example.com>
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.