The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Lingua::AFR::Word2Num

VERSION

version 0.0682

Text to positive number convertor for Afrikaans.

Input text must be encoded in utf8.

$Rev: 682 $

ISO 639-3 namespace

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

DESCRIPTION

Word 2 number conversion in AFR.

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.

Functions Reference

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

Convert text representation to number.

af_numerals

EXPORT_OK

w2n

KNOWN BUGS

None.

AUTHOR

 Vitor Serra Mori <info@petamem.com>

COPYRIGHT

Copyright (C) PetaMem, s.r.o. 2004-present

LICENSE

Artistic license or BSD license.