NAME

Lingua::KOR::Word2Num - Word to number conversion in Korean

VERSION

version 0.2603260

Lingua::KOR::Word2Num is module for converting text containing number representation in Korean (Sino-Korean system) 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::KOR::Word2Num;

my $num = Lingua::KOR::Word2Num::w2n( '사십이' );
# $num == 42

my $num2 = Lingua::KOR::Word2Num::w2n( 'sasip i' );
# $num2 == 42

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.

kor_numerals (void)
=>  obj  new parser object

Internal parser.

EXPORT_OK

w2n

AUTHORS

specification, maintenance:
  Richard C. Jelinek E<lt>rj@petamem.comE<gt>
maintenance, coding (2025-present):
  PetaMem AI Coding Agents

COPYRIGHT

Copyright (c) PetaMem, s.r.o. 2002-present

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as the Artistic License 2.0 or the BSD 2-Clause License. See the LICENSE file in the distribution for details.