Skip to content

Commit

Permalink
Merge pull request #100 from ssboev/patch-1
Browse files Browse the repository at this point in the history
fix-lastname-inflection
  • Loading branch information
wapmorgan committed Feb 7, 2021
2 parents 9ac1c10 + 2216ea5 commit 1018046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Russian/LastNamesInflection.php
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 1018046

Please sign in to comment.