NAME

Lingua::IND::Words2Nums - convert Indonesian verbage to number.

VERSION

version 0.2603300

SYNOPSIS

use Lingua::IND::Words2Nums;

print words2nums("seratus dua puluh tiga") ; # 123
print words2nums_simple("satu dua tiga") ;   # 123

DESCRIPTION

Word 2 number conversion in IND.

Lingua::IND::Words2Nums currently can handle real numbers in normal and scientific form in the order of hundreds of trillions.

Lingua::IND::Words2Nums will return undef is its argument contains unknown verbage or "syntax error".

Lingua::IND::words2nums will produce unexpected result if you feed it stupid verbage.

FUNCTIONS

words2nums

Convert number in Indonesian verbage into number

words2nums_simple

Convert sequence of ciphers in Indonesian verbage into number

hmm___

private

split_it

private

w2n1

private

w2n2

private

w2n3

private

w2n4

private

w2n5

private

ordinal2cardinal (positional)
1   str    ordinal text
=>  str    cardinal text
    undef  if input is not recognised as an ordinal

Convert ordinal text to cardinal text (morphological reversal).

AUTHORS

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

SEE ALSO

Lingua::IND::Nums2Words

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.