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


Lingua-RU-Sklon documentation  | view source Contained in the Lingua-RU-Sklon distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  use Lingua::RU::Sklon;

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

DESCRIPTION

Top

  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

Top

Alexey Usanov <alexey_usa@mail.ru>

SEE ALSO

Top

Lingua::RU::Charset, perllocale

COPYRIGHT

Top


Lingua-RU-Sklon documentation  | view source Contained in the Lingua-RU-Sklon distribution.