NAME

Lingua::CYM::Num2Word - Number to word conversion in Welsh (Cymraeg)

VERSION

version 0.2603270

Lingua::CYM::Num2Word is a module for converting numbers into their written representation in Welsh, using the modern decimal counting system. Converts whole numbers from 0 up to 999 999 999.

Text is encoded in UTF-8.

SYNOPSIS

use Lingua::CYM::Num2Word;

my $text = Lingua::CYM::Num2Word::num2cym_cardinal( 123 );
print $text || "sorry, can't convert this number into Welsh.";

Functions Reference

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

Convert number to Welsh text representation using the modern decimal system. Only numbers from interval [0, 999_999_999] will be converted.

capabilities (void)
=>  hashref   hash of supported features

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

EXPORT_OK

num2cym_cardinal

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