NAME

Lingua::HIN::Word2Num - Word to number conversion in Hindi

VERSION

version 0.2603300

Lingua::HIN::Word2Num is a module for converting Hindi numerals (in Devanagari script) into numbers. Converts whole numbers from 0 up to 99,99,99,999 (99 crore). Input is expected to be in UTF-8.

Uses the Indian numbering system with लाख (lakh, 10^5) and करोड़ (crore, 10^7).

SYNOPSIS

use Lingua::HIN::Word2Num;

my $num = Lingua::HIN::Word2Num::w2n( 'पच्चीस' );
print defined($num) ? $num : "sorry, can't convert this text into number.";

Functions Reference

w2n (positional)
1   str    string to convert (UTF-8 Devanagari)
=>  num    converted number
    undef  if input string is not known

Convert text representation to number. You can specify a numeral from interval [0, 99_99_99_999].

hin_numerals (void)
=>  obj  new parser object

Internal parser.

capabilities (void)
=>  hashref  supported conversion types

Returns a hashref indicating which conversions are supported.

EXPORT_OK

w2n

AUTHORS

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

COPYRIGHT

Copyright (c) PetaMem, s.r.o. 2004-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.