Skip to content

Commit

Permalink
fix-lastname-inflection
Browse files Browse the repository at this point in the history
Склонение фамилий, оканчивающихся на ёв/ёва
  • Loading branch information
ssboev committed Dec 9, 2020
1 parent 9ac1c10 commit 2216ea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Russian/LastNamesInflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static function getCases($name, $gender = null)

if (static::isMutable($name, $gender)) {
if ($gender == static::MALE) {
if (in_array(S::slice($name, -2), ['ов', 'ев', 'ин', 'ын'], true)) {
if (in_array(S::slice($name, -2), ['ов', 'ев', 'ин', 'ын', 'ёв'], true)) {
$prefix = S::name($name);
return [
static::IMENIT => $prefix,
Expand Down Expand Up @@ -159,7 +159,7 @@ public static function getCases($name, $gender = null)
}

} else {
if (in_array(S::slice($name, -3), ['ова', 'ева', 'ина', 'ына'], true)) {
if (in_array(S::slice($name, -3), ['ова', 'ева', 'ина', 'ына', 'ёва'], true)) {
$prefix = S::name(S::slice($name, 0, -1));
return [
static::IMENIT => S::name($name),
Expand Down

0 comments on commit 2216ea5

Please sign in to comment.