russianlanguagesupport This extension add a function for inflect russian nouns

  1. Installation
  2. Usage

This extension provide a method for the russian nouns inflection.

It is based on the yandex's inflexion service.

It saves already inflected words in a table, on order to minimize the request to the service.

Installation

Add to the database the words' table (definition in schema.sql) Place the folder in extension, and add it to import

'import'=>array(
		'application.models.*',
		'application.components.*',
		'application.extension.russianLanguageSupport.*',
	),

Usage

For inflect a word, use:

russianLanguageSupport::declinate('мама', 'rod');

The cases are:

  • 'nom': Nominative - Именительный
  • 'gen': Genitive - Родительный
  • 'dat': Dative - Дательный
  • 'acc': Accusative - Винительный
  • 'str': Instrumental - Творительный
  • 'prep': Prepositional - Предложный
7 0
5 followers
357 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: zaccaria
Created on: Apr 14, 2011
Last updated: 13 years ago

Downloads

show all