Lingua::RU::Sklon - helps declensing russian word
use Lingua::RU::Sklon; print sklon("Àëåêñååâ Àëåêñåé Àëåêñååâè÷"=>'VIN'); print sklon(convert('koi'=>'win', 'þÊÅÉßÅÅÁ þÊÅÉßÅÈ þÊÅÉßÅÅÁÕÂ' )=>'VIN'); # gives Àëåêñååâà Àëåêñåÿ Àëåêñååâè÷à
Lingua::RU::Sklon - specially made to helps declense russian names in any acts or docs you've come through. This, sadly, doesn't help yet at some more complex names such as Ìîñêîâñêàÿ-Ìóøòàê Âèêòîðèÿ-Ñòåïàíèäà Äæóëüðàáè îãëû. But, in 99.9% cases this module fits. default encoding for this module is win-1251. be sure you install this locale. If not, then please send all names initcapped, this should do the trick either.
usage my $win_text=convert ('koi'=>'win', $koi_text); This lil' helper converts russian text from/to different encodings. available charsets koi, win, iso, dos see Lingua::RU::Charset for more flexible version.
This function gets full name of client, and transforms it into desired declense. Available list of declesnes is: C< I=>1, IMEN=>1, 1=>1, #Èìåíèòåëüíûé R=>2, ROD=>2, 2=>2, #Ðîäèòåëüíîãî D=>3, DAT=>3, 3=>3, #Äàòåëüíûì V=>4, VIN=>4, 4=>4, #Âèíèòåëüíûé T=>5, TVOR=>5, 5=>5, #Òâîðèòåëüíûì P=>6, PRED=>6, 6=>6 #î Ïðåäëîæíîì >
Yes, it's the hash from above.
Make First Letters of the Every Word Capital.
parses noun (name or second name) of client.
parses last name of client.
Alexey Usanov <alexey_usa@mail.ru>
Lingua::RU::Charset, perllocale
Copyright (c) 2007, Alexey Usanov. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'sklon("Àëåêñååâ'. Assuming CP1252
To install Lingua::RU::Sklon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::RU::Sklon
CPAN shell
perl -MCPAN -e shell install Lingua::RU::Sklon
For more information on module installation, please visit the detailed CPAN module installation guide.