Mystem is a software that provided by the Yandex only for non-commercial project. With use of it you can detect base forms of the words in a text, make a simple morphological analysis of russian words.
Dmitry Polushkin
gem "yandex_mystem", "~> 0.0.1"