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


NAME

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


SYNOPSIS

  use Lingua::RU::Sklon;

  print sklon("Алексеев Алексей Алексеевич"=>'VIN');
  print sklon(convert('koi'=>'win', 'юКЕЙЯЕЕБ юКЕЙЯЕИ юКЕЙЯЕЕБХВ' )=>'VIN');
  # gives Алексеева Алексея Алексеевича

=head1 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 the Lingua::RU::Charset manpage 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  #о Предложном
 >

=item %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.

=back


AUTHOR

Alexey Usanov <alexey_usa@mail.ru>


SEE ALSO

the Lingua::RU::Charset manpage, the perllocale manpage


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.

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