@@ 210-212 (lines=3) @@ | ||
207 | // exceptions |
|
208 | if (in_array($word, self::$neuterExceptions, true)) { |
|
209 | $forms[Cases::RODIT] = $prefix.'ей'; |
|
210 | } elseif (S::slice($word, -2, -1) == 'и') { |
|
211 | $forms[Cases::RODIT] = $prefix.'й'; |
|
212 | } else { |
|
213 | $forms[Cases::RODIT] = $prefix; |
|
214 | } |
|
215 | } elseif (S::slice($word, -2) == 'ка') { // words ending with -ка: чашка, вилка, ложка, тарелка, копейка, батарейка |
|
@@ 218-220 (lines=3) @@ | ||
215 | } elseif (S::slice($word, -2) == 'ка') { // words ending with -ка: чашка, вилка, ложка, тарелка, копейка, батарейка |
|
216 | if (S::slice($word, -3, -2) == 'л') { |
|
217 | $forms[Cases::RODIT] = S::slice($word, 0, -2).'ок'; |
|
218 | } elseif (S::slice($word, -3, -2) == 'й') { |
|
219 | $forms[Cases::RODIT] = S::slice($word, 0, -3).'ек'; |
|
220 | } else { |
|
221 | $forms[Cases::RODIT] = S::slice($word, 0, -2).'ек'; |
|
222 | } |
|
223 | } elseif (in_array($last, ['а'], true)) { // обида, ябеда |
|
@@ 229-231 (lines=3) @@ | ||
226 | $forms[Cases::RODIT] = $prefix.'й'; |
|
227 | } elseif (RussianLanguage::isHissingConsonant($last) || ($soft_last && $last != 'й') || in_array(S::slice($word, -2), ['чь', 'сь', 'ть', 'нь'], true)) { |
|
228 | $forms[Cases::RODIT] = $prefix.'ей'; |
|
229 | } elseif ($last == 'й' || S::slice($word, -2) == 'яц') { // месяц |
|
230 | $forms[Cases::RODIT] = $prefix.'ев'; |
|
231 | } else { // (self::isConsonant($last) && !RussianLanguage::isHissingConsonant($last)) |
|
232 | $forms[Cases::RODIT] = $prefix.'ов'; |
|
233 | } |
|
234 |