Skip to content

Web service client for Yandex.Inflect Russian language inflection service | Клиент веб-сервиса Яндекс.Склонятор

License

Notifications You must be signed in to change notification settings

russian/yandex_inflect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yandex.Inflect webservice client (provides Russian language pluralization)

Клиент сервиса Яндекс.Склонятор (склонение слов на русском языке)

Установка в качестве gem (с GemCutter):

gem install yandex_inflect
> YandexInflect.inflections("рубин")
=> ["рубин", "рубина", "рубину", "рубин", "рубином", "рубине"]
> YandexInflect.inflections("ЭтогоСловаНетВСловаре")
=> ["ЭтогоСловаНетВСловаре", "ЭтогоСловаНетВСловаре", "ЭтогоСловаНетВСловаре", 
    "ЭтогоСловаНетВСловаре", "ЭтогоСловаНетВСловаре", "ЭтогоСловаНетВСловаре"]

Если во время общения с веб-сервисом произошла ошибка, возвращается массив, забитый оригинальной строкой.

Успешные ответы от веб-сервиса кешируются, кеш можно очистить с помощью

> YandexInflect.clear_cache
  • Ярослав Маркин <yaroslav@markin.net>

About

Web service client for Yandex.Inflect Russian language inflection service | Клиент веб-сервиса Яндекс.Склонятор

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published