Giter Club home page Giter Club logo

lingua-ru-inflect's Introduction

Lingua-RU-Inflect

Lingua::RU::Inflect is a perl module
that provides Russian linguistic procedures
such as declension of given names (with some nouns and adjectives too)
and gender detection by given name.

Note: choosing of proper forms of varying prepositions
was moved to Lingua::RU::Preposition.

INSTALLATION

To install this module, run the following commands:

	perl Makefile.PL
	make
	make test
	make install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command.

    perldoc Lingua::RU::Inflect

You can also look for information at:

    RT, CPAN's request tracker
        http://rt.cpan.org/NoAuth/Bugs.html?Dist=Lingua-RU-Inflect

    AnnoCPAN, Annotated CPAN documentation
        http://annocpan.org/dist/Lingua-RU-Inflect

    CPAN Ratings
        http://cpanratings.perl.org/d/Lingua-RU-Inflect

    Search CPAN
        http://search.cpan.org/dist/Lingua-RU-Inflect/

    Public repository at github
        https://github.com/shoorick/lingua-ru-inflect

COPYRIGHT AND LICENCE

Copyright (C) 2009-2018 Alexander Sapozhnikov

This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

lingua-ru-inflect's People

Contributors

ruffinakoza avatar shoorick avatar vividsnow avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ruffinakoza

lingua-ru-inflect's Issues

Неправильная форма творительного падежа некоторых имён и существительных на -ья

Имена собственные и существительные, оканчивающиеся на -ья, не всегда правильно склоняются — у них в творительном падеже стоит окончание -ьей, хотя иногда должно быть -ьёй.

Правильно:

  • Натальей
  • горгульей

Неправильно:

  • Ильей — должно быть Ильёй
  • судьей, бадьей, попадьей.

Wrong declension of word “лёд”

Letter Ё in word «лёд» must be replaced with soft sign Ь, but similar words must keep this letter:

  • лёд → льда
  • гололёд → гололёда
$ perl -CS -MLingua::RU::Inflect=:all -ne 'chomp; for my $case (NOMINATIVE .. PREPOSITIONAL) { print join(" ", inflect_given_name($case, $_, "", "")), "\t" } print "\n"'
Лёд
Лёд  	Лёда  	Лёду  	Лёда  	Лёдом  	Лёде  	
Мёд
Мёд  	Мёда  	Мёду  	Мёда  	Мёдом  	Мёде  	
Гололёд
Гололёд  	Гололёда  	Гололёду  	Гололёда  	Гололёдом  	Гололёде  	

How to solve

Add exception to declension rule.

Неправильная форма творительного падежа некоторых фамилий на -рин

Фамилии, оканчивающиеся на -ин, не всегда правильно склоняются — у них в творительном падеже стоит окончание -иным, хотя иногда должно быть -ином.

Правильно:

  • Ильиным
  • Кузьминым
  • Лениным
  • Марьиным

Неправильно:

  • Бриным — должно быть Брином
  • Гриным
  • Мандариным

Надо по-разному склонять фамилии: те из них, что не образованы от притяжательных прилагательных, должны в творительном падеже оканчиваться на -ом.

Cannot export removed function

Function choose_preposition_by_next_word cannot be exported when module used as

    use Lingua::RU::Inflect qw( :cases inflect_given_name );

"choose_preposition_by_next_word" is not exported by the Lingua::RU::Inflect module

Wrong genitive for Pavel

Имя Павел склоняется неправильно: Павела вместо Павла

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.