NAME
Lingua::AFR::Word2Num - Word to number conversion in Afrikaans
VERSION
version 0.2603300
Lingua::AFR::Word2Num is module for converting text containing number representation in afrikaans back into number. Converts whole numbers from 0 up to 999 999 999 999.
SYNOPSIS
use Lingua::AFR::Word2Num;
my $num = Lingua::AFR::Word2Num::w2n( 'een honderd, drie en twintig' );
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 not knownConvert text representation to number. If the input string is not known, or out of the interval, undef is returned.
- ordinal2cardinal (positional)
-
1 str ordinal text (e.g. 'derde', 'twaalfde', 'twintigste') => str cardinal text (e.g. 'drie', 'twaalf', 'twintig') undef if input is not recognised as an ordinalConvert Afrikaans ordinal text to cardinal text (morphological reversal).
- afr_numerals (void)
-
=> obj new parser objectInternal parser.
EXPORT_OK
- w2n
- ordinal2cardinal
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.