@@ 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( |
@@ 202-211 (lines=10) @@ | ||
199 | } |
|
200 | ||
201 | // Субстантивное склонение (существительные) |
|
202 | if (in_array($word, static::$immutableWords, true)) { |
|
203 | return [ |
|
204 | static::IMENIT => $word, |
|
205 | static::RODIT => $word, |
|
206 | static::DAT => $word, |
|
207 | static::VINIT => $word, |
|
208 | static::TVORIT => $word, |
|
209 | static::PREDLOJ => $word, |
|
210 | ]; |
|
211 | } |
|
212 | ||
213 | if (isset(static::$abnormalExceptions[$word])) { |
|
214 | return array_combine([static::IMENIT, static::RODIT, static::DAT, static::VINIT, static::TVORIT, static::PREDLOJ], static::$abnormalExceptions[$word]); |