NAME

Lingua::LIT::Num2Word - Number to word conversion in Lithuanian

VERSION

version 0.2603260

Lingua::LIT::Num2Word is module for conversion of numbers into their representation in Lithuanian. It converts whole numbers from 0 up to 999 999 999.

SYNOPSIS

use Lingua::LIT::Num2Word;

my $text = Lingua::LIT::Num2Word::num2lit_cardinal( 123 );

print $text || "sorry, can't convert this number into Lithuanian.";

Functions Reference

num2lit_cardinal (positional)
1   num    number to convert
=>  str    lexical representation of the input
    undef  if input number is not known

Convert number to text representation. Only numbers from interval [0, 999_999_999] will be converted.

_decline (positional)
1   num    the count to determine declension for
2   str    singular form (last digit 1, not 11)
3   str    plural nominative form (last digit 2-9, not 12-19)
4   str    genitive plural form (last digit 0, or 10-19)
=>  str    correct declension form

Internal helper. Selects the correct Lithuanian noun declension based on the number.

_hundreds (positional)
1   num    number in range [100, 999]
=>  str    hundreds part as text

Internal helper. Converts the hundreds component of a number to text.

EXPORT_OK

num2lit_cardinal

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. 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.