Skip to content

Commit

Permalink
Merge e275cfc into fcdd09f
Browse files Browse the repository at this point in the history
  • Loading branch information
alter72 committed Apr 29, 2020
2 parents fcdd09f + e275cfc commit 143eaf1
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/Russian/GeographicalNamesInflection.php
Expand Up @@ -32,7 +32,7 @@ class GeographicalNamesInflection extends \morphos\BaseInflection implements Cas
'алматы',
'сочи',
'гоа',

// части
'санкт',
'йошкар',
Expand Down Expand Up @@ -211,12 +211,27 @@ public static function getCases($name)
static::LOCATIVE => $prefix.'ой',
];

// Нижняя, Верхняя, Средняя
case 'яя':
$prefix = S::name(S::slice($name, 0, -2));
return [
static::IMENIT => $prefix.'яя',
static::RODIT => $prefix.'ей',
static::DAT => $prefix.'ей',
static::VINIT => $prefix.'юю',
static::TVORIT => $prefix.'ей',
static::PREDLOJ => $prefix.'ей',
static::LOCATIVE => $prefix.'ей',
];

// Россошь
case 'шь':
// Пермь, Кемь
case 'мь':
// Рязань, Назрань
case 'нь':
// Сысерть
case 'ть':
// Керчь
case 'чь':
$prefix = S::name(S::slice($name, 0, -1));
Expand Down

0 comments on commit 143eaf1

Please sign in to comment.