PetaMem > Lingua-FRA-Word2Num-0.1257 > Lingua::FRA::Word2Num

Download:
Lingua-FRA-Word2Num-0.1257.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.1257   Source  

NAME ^

Lingua::FRA::Word2Num

VERSION ^

version 0.1257

Word 2 number conversion in FRA.

Lingua::FRA::Word2Num is module for converting text containing number representation in French back into number. Converts whole numbers from 0 up to 999 999 999 999.

Input text must be encoded in UTF-8.

SYNOPSIS ^

 use Lingua::FRA::Word2Num;

 my $num = Lingua::FRA::Word2Num::w2n( 'cent vingt-trois' );

 print defined($num) ? $num : "sorry, can't convert this text into number.";

Functions Reference ^

w2n (positional)
  1   str    string to convert
  =>  num    converted number
  =>  undef  if input string is not known

Convert text representation to number.

fr_numerals (void)
  =>  obj  new parser object

Internal parser.

EXPORT_OK ^

w2n

AUTHOR ^

 coding, maintenance, refactoring, extensions, specifications:

   Vitor Serra Mori <info@petamem.com>

COPYRIGHT ^

Copyright (C) PetaMem, s.r.o. 2004-present

syntax highlighting: