Subject: | "sen ichi" or "man ichi" in romaji cause a bug |
The following code demonstrates the bug:
use lib 'Lingua-JA-Numbers-0.05/lib';
use Lingua::JA::Numbers 'ja2num';
my $n;
$n = ja2num ('sen ichi');
print "$n\n";
$n = ja2num ('sen juu ichi');
print "$n\n";
The output is like this:
$ perl test.pl
1011
The origin of the bug appears to be that "sen ichi" is converted into "senichi" and then the "ni" within "senichi" is converted into a numeral 2, and the conversion fails. The same thing happens with "man ichi".