Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Неправильное склонение фамилий на -ёв/-ёва #99

Closed
ssboev opened this issue Dec 9, 2020 · 0 comments
Assignees

Comments

@ssboev
Copy link
Contributor

ssboev commented Dec 9, 2020

В склонениях не учтены фамилии, оканчивающиеся на ёв/ёва (некоторым важно писать именно через ё). Правила склонения такие-же, как для основных стандартных окончаний.

if (in_array(S::slice($name, -2), ['ов', 'ев', 'ин', 'ын', 'ёв'], true)) { $prefix = S::name($name); return [ static::IMENIT => $prefix, static::RODIT => $prefix.'а', static::DAT => $prefix.'у', static::VINIT => $prefix.'а', static::TVORIT => $prefix.'ым', static::PREDLOJ => $prefix.'е' ]; }
...
if (in_array(S::slice($name, -3), ['ова', 'ева', 'ина', 'ына', 'ёва'], true)) { $prefix = S::name(S::slice($name, 0, -1)); return [ static::IMENIT => S::name($name), static::RODIT => $prefix.'ой', static::DAT => $prefix.'ой', static::VINIT => $prefix.'у', static::TVORIT => $prefix.'ой', static::PREDLOJ => $prefix.'ой' ]; }

@wapmorgan wapmorgan self-assigned this Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants