PetaMem > Lingua-DEU-Word2Num-0.1106 > Lingua::DEU::Word2Num

Download:
Lingua-DEU-Word2Num-0.1106.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.1106   Source  

NAME ^

Lingua::DEU::Word2Num

VERSION ^

version 0.1106

Word 2 Number conversion in DEU.

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

Text must be encoded in UTF-8.

SYNOPSIS ^

 use Lingua::DEU::Word2Num;

 my $num = Lingua::DEU::Word2Num::w2n( 'siebzehn' );

 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. You can specify a numeral from interval [0,999_999].

deu_numerals (void)
  =>  obj  new parser object

Internal parser.

EXPORT_OK ^

w2n

AUTHOR ^

 coding, maintenance, refactoring, extensions, specifications:

   Roman Vasicek <info@petamem.com>

COPYRIGHT ^

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

syntax highlighting: