shoorick / lingua-ru-inflect Goto Github PK
View Code? Open in Web Editor NEWLingua::RU::Inflect perl module
Lingua::RU::Inflect perl module
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.
Фамилии, оканчивающиеся на -ин, не всегда правильно склоняются — у них в творительном падеже стоит окончание -иным, хотя иногда должно быть -ином.
Правильно:
Неправильно:
Надо по-разному склонять фамилии: те из них, что не образованы от притяжательных прилагательных, должны в творительном падеже оканчиваться на -ом.
Имена собственные и существительные, оканчивающиеся на -ья, не всегда правильно склоняются — у них в творительном падеже стоит окончание -ьей, хотя иногда должно быть -ьёй.
Правильно:
Неправильно:
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
Имя Павел склоняется неправильно: Павела вместо Павла
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"'
Лёд
Лёд Лёда Лёду Лёда Лёдом Лёде
Мёд
Мёд Мёда Мёду Мёда Мёдом Мёде
Гололёд
Гололёд Гололёда Гололёду Гололёда Гололёдом Гололёде
Add exception to declension rule.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.