src/Russian/GeographicalNamesInflection.php 1 location
|
@@ 121-128 (lines=8) @@
|
118 |
|
/** |
119 |
|
* @return int[]|false[] |
120 |
|
*/ |
121 |
|
protected static function getRunAwayVowelsList() |
122 |
|
{ |
123 |
|
$runawayVowelsNormalized = []; |
124 |
|
foreach (static::$runawayVowelsExceptions as $word) { |
125 |
|
$runawayVowelsNormalized[str_replace('*', '', $word)] = S::indexOf($word, '*') - 1; |
126 |
|
} |
127 |
|
return $runawayVowelsNormalized; |
128 |
|
} |
129 |
|
|
130 |
|
/** |
131 |
|
* Проверяет, склоняемо ли название |
src/Russian/NounDeclension.php 1 location
|
@@ 497-504 (lines=8) @@
|
494 |
|
/** |
495 |
|
* @return int[]|false[] |
496 |
|
*/ |
497 |
|
public static function getRunAwayVowelsList() |
498 |
|
{ |
499 |
|
$runawayVowelsNormalized = []; |
500 |
|
foreach (NounDeclension::$runawayVowelsExceptions as $word) { |
501 |
|
$runawayVowelsNormalized[str_replace('*', '', $word)] = S::indexOf($word, '*') - 1; |
502 |
|
} |
503 |
|
return $runawayVowelsNormalized; |
504 |
|
} |
505 |
|
} |
506 |
|
|