Lingua::Num2Word - wrapper for number to text conversion modules of various languages in the Lingua:: hierarchy.
use Lingua::Num2Word; my $numbers = Lingua::Num2Word->new; # try to use czech module (Lingua::CS::Num2Word) for conversion to text my $text = $numbers->cardinal( 'cs', 123 ); # or procedural usage if you dislike OO my $text = Lingua::Num2Word::cardinal( 'cs', 123 ); print $text || "sorry, can't convert this number into czech language.";
Lingua::Num2Word is module for converting numbers into their representation in spoken language. This is wrapper for various Lingua::XX::Num2Word modules.
For further information about various limitations see documentation for currently used package.
known_langs
List of all currently supported languages.
langs
List of all known language codes from iso639.
cardinal(lang,number)
Conversion from number to text representation in specified language.
aa Afar ab Abkhazian af Afrikaans am Amharic ar Arabic as Assamese ay Aymara az Azerbaijani ba Bashkir be Byelorussian bg Bulgarian bh Bihari bi Bislama bn Bengali bo Tibetan br Breton ca Catalan co Corsican cs Czech cy Welch da Danish de German dz Bhutani el Greek en English eo Esperanto es Spanish et Estonian eu Basque fa Persian fi Finnish fj Fiji fo Faeroese fr French fy Frisian ga Irish gd Scots Gaelic gl Galician gn Guarani gu Gujarati ha Hausa he Hebrew -> SEE IW hi Hindi hr Croatian hu Hungarian hy Armenian ia Interlingua id Indonesian -> SEE IN ie Interlingue ik Inupiak in Indonesian is Icelandic it Italian iw Hebrew ja Japanese ji Yiddish jw Javanese ka Georgian kk Kazakh kl Greenlandic km Cambodian kn Kannada ko Korean ks Kashmiri ku Kurdish ky Kirghiz la Latin ln Lingala lo Laothian lt Lithuanian lv Latvian, Lettish mg Malagasy mi Maori mk Macedonian ml Malayalam mn Mongolian mo Moldavian mr Marathi ms Malay mt Maltese my Burmese na Nauru ne Nepali nl Dutch no Norwegian oc Occitan om (Afan) Oromo or Oriya pa Punjabi pl Polish ps Pashto, Pushto pt Portuguese qu Quechua rm Rhaeto-Romance rn Kirundi ro Romanian ru Russian rw Kinyarwanda sa Sanskrit sd Sindhi sg Sangro sh Serbo-Croatian si Singhalese sk Slovak sl Slovenian sm Samoan sn Shona so Somali sq Albanian sr Serbian ss Siswati st Sesotho su Sudanese sv Swedish sw Swahili ta Tamil te Tegulu tg Tajik th Thai ti Tigrinya tk Turkmen tl Tagalog tn Setswana to Tonga tr Turkish ts Tsonga tt Tatar tw Twi uk Ukrainian ur Urdu uz Uzbek vi Vietnamese vo Volapuk wo Wolof xh Xhosa yi Yiddish -> SEE JI yo Yoruba zh Chinese zu Zulu
cardinal
None.
Roman Vasicek <rv@petamem.com>
Copyright (c) 2002 PetaMem s.r.o.
This package is free software. Tou can redistribute and/or modify it under the same terms as Perl itself.
To install Lingua::Num2Word, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::Num2Word
CPAN shell
perl -MCPAN -e shell install Lingua::Num2Word
For more information on module installation, please visit the detailed CPAN module installation guide.