NAME

Lingua::CYM::Word2Num - Word to number conversion in Welsh (Cymraeg)

VERSION

version 0.2603270

Lingua::CYM::Word2Num is a module for converting Welsh numerals into numbers, using the modern decimal counting system. Converts whole numbers from 0 up to 999 999 999. Input is expected to be in UTF-8.

SYNOPSIS

use Lingua::CYM::Word2Num;

my $num = Lingua::CYM::Word2Num::w2n( 'tri deg pedwar' );

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 Welsh text representation to number. You can specify a numeral from interval [0,999_999_999].

cym_numerals (void)
=>  obj  new parser object

Internal parser.

capabilities (void)
=>  hashref   hash of supported features

Returns a hashref indicating which conversion types are supported. Currently: cardinal => 1, ordinal => 0.

EXPORT_OK

w2n

AUTHORS

specification, maintenance:
  Richard C. Jelinek E<lt>rj@petamem.comE<gt>
coding (2026-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.