The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Lingua::RU::Sklon - helps declensing russian word

SYNOPSIS

  use Lingua::RU::Sklon;
  
  print sklon("Àëåêñååâ Àëåêñåé Àëåêñååâè÷"=>'VIN');
  print sklon(convert('koi'=>'win', 'þÊÅÉßÅÅÁ þÊÅÉßÅÈ þÊÅÉßÅÅÁÕÂ' )=>'VIN');
  # gives Àëåêñååâà Àëåêñåÿ Àëåêñååâè÷à
  

DESCRIPTION

  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.
convert (FROM=>TO, WHAT)

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.

sklon (WHAT=>PAD)
 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  #î Ïðåäëîæíîì
 >
 
%pads
 Yes, it's the hash from above.
initcap (NAME)

Make First Letters of the Every Word Capital.

parse_n

parses noun (name or second name) of client.

parse_lastname

parses last name of client.

AUTHOR

Alexey Usanov <alexey_usa@mail.ru>

SEE ALSO

Lingua::RU::Charset, perllocale

COPYRIGHT

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:

Around line 372:

Non-ASCII character seen before =encoding in 'sklon("Àëåêñååâ'. Assuming CP1252