Skip to content

Commit

Permalink
Merge 84f94b9 into d609cd6
Browse files Browse the repository at this point in the history
  • Loading branch information
dixstonz3 committed Feb 16, 2020
2 parents d609cd6 + 84f94b9 commit 9b7ba73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Russian/GeographicalNamesInflection.php
Expand Up @@ -91,9 +91,9 @@ public static function isMutable($name)
S::findLastPosition($name, ' ') + 1);

// город N, село N, хутор N, район N, поселок N, округ N, республика N
// N область, N край
// N область, N край, N район, N волость
if (in_array($first_part, ['город', 'село', 'хутор', 'район', 'поселок', 'округ', 'республика'], true)
|| in_array($last_part, ['край', 'область'], true)) {
|| in_array($last_part, ['край', 'область', 'район', 'волость'], true)) {
return true;
}

Expand Down Expand Up @@ -143,7 +143,7 @@ public static function getCases($name)
$last_part = S::slice($name,
S::findLastPosition($name, ' ') + 1);
// N область, N край
if (in_array($last_part, ['край', 'область'], true)) {
if (in_array($last_part, ['край', 'область', 'район', 'волость'], true)) {
return static::composeCasesFromWords([static::getCases(S::slice($name, 0, S::findLastPosition($name, ' '))), NounDeclension::getCases($last_part)]);
}
}
Expand Down

0 comments on commit 9b7ba73

Please sign in to comment.