NAME

Lingua::CES::Word2Num - Word to number conversion in Czech

VERSION

version 0.2603300

Lingua::CES::Word2Num is module for converting czech numerals into numbers. Converts whole numbers from 0 up to 999 999 999. Input is expected to be in UTF-8.

SYNOPSIS

use Lingua::CES::Word2Num;

my $num = Lingua::CES::Word2Num::w2n( 'dvacet' );

print defined($num) ? $num : "sorry, can't convert this text into number.";

Functions Reference

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

Convert text representation to number.

ordinal2cardinal (positional)
1   str    ordinal text (e.g. 'pátý', 'dvacátý', 'třetí')
=>  str    cardinal text (e.g. 'pět', 'dvacet', 'tři')
    undef  if input is not a recognized ordinal

Convert Czech ordinal text to cardinal text via morphological reversal. Handles all gender/case inflections (masculine, feminine, neuter, oblique).

ces_numerals (void)
=>  obj  object of the parser

Internal parser.

EXPORT_OK

w2n
ordinal2cardinal

AUTHORS

specification, maintenance:
  Richard C. Jelinek E<lt>rj@petamem.comE<gt>
coding (until 2005):
  Roman Vasicek E<lt>info@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.