| @@ 141-150 (lines=10) @@ | ||
| 138 | { |
|
| 139 | $word = S::lower($word); |
|
| 140 | ||
| 141 | if (in_array($word, NounDeclension::$immutableWords, true)) { |
|
| 142 | return [ |
|
| 143 | static::IMENIT => $word, |
|
| 144 | static::RODIT => $word, |
|
| 145 | static::DAT => $word, |
|
| 146 | static::VINIT => $word, |
|
| 147 | static::TVORIT => $word, |
|
| 148 | static::PREDLOJ => $word, |
|
| 149 | ]; |
|
| 150 | } |
|
| 151 | ||
| 152 | if (isset(static::$abnormalExceptions[$word])) { |
|
| 153 | return array_combine( |
|
| @@ 203-212 (lines=10) @@ | ||
| 200 | } |
|
| 201 | ||
| 202 | // Субстантивное склонение (существительные) |
|
| 203 | if (in_array($word, static::$immutableWords, true)) { |
|
| 204 | return [ |
|
| 205 | static::IMENIT => $word, |
|
| 206 | static::RODIT => $word, |
|
| 207 | static::DAT => $word, |
|
| 208 | static::VINIT => $word, |
|
| 209 | static::TVORIT => $word, |
|
| 210 | static::PREDLOJ => $word, |
|
| 211 | ]; |
|
| 212 | } |
|
| 213 | ||
| 214 | if (isset(static::$abnormalExceptions[$word])) { |
|
| 215 | return array_combine([static::IMENIT, static::RODIT, static::DAT, static::VINIT, static::TVORIT, static::PREDLOJ], static::$abnormalExceptions[$word]); |
|