NAME

Lingua::ZHO::Word2Num

VERSION

version 0.2603230

Word 2 number conversion in ZHO.

Lingua::ZHO::Word2Num is module for converting text containing number representation in Chinese 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::ZHO::Word2Num;

my $num = Lingua::ZHO::Word2Num::w2n( 'SiShi Er' );

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

Functions Reference

w2n (positional)
1   str  string to convert
=>  num  converted number

Convert text representation to number.

zho_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. 2003-present