Extend lists for Ukrainian place hierarchy indicators
This commit is contained in:
parent
40cf5a5112
commit
681002d844
|
@ -229,11 +229,11 @@ final class NodaConsolidatedNamesForPlaces extends NodaConsolidatedNamesAbstract
|
||||||
private static function _rewrite_ukrainian_names_by_hierarchy($name):string {
|
private static function _rewrite_ukrainian_names_by_hierarchy($name):string {
|
||||||
|
|
||||||
$identifiersByLevel = [
|
$identifiersByLevel = [
|
||||||
'state' => [' РСР', 'РСР ', ' губернія', 'губернія '],
|
'state' => [' РСР', 'РСР ', ' АРСР', 'АРСР ', ' губернія', 'губернія '],
|
||||||
'oblast' => ['обл.', 'округа', 'губернії'],
|
'oblast' => ['обл.', 'область', 'області', 'округа', 'губернії'],
|
||||||
'region' => ['р-н', 'район'],
|
'region' => ['р-н', 'район'],
|
||||||
'county' => ['повіт'],
|
'county' => ['повіт'],
|
||||||
'city' => ['м.'],
|
'city' => ['м.', 'м '],
|
||||||
'parish' => ['волость'],
|
'parish' => ['волость'],
|
||||||
'village' => ['смт', 'сільська', 'с. ', 'село'],
|
'village' => ['смт', 'сільська', 'с. ', 'село'],
|
||||||
'district' => [], // Is also р-н; which it is is determined based on position
|
'district' => [], // Is also р-н; which it is is determined based on position
|
||||||
|
@ -283,7 +283,7 @@ final class NodaConsolidatedNamesForPlaces extends NodaConsolidatedNamesAbstract
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special case: Abbreviated SSRs
|
// Special case: Abbreviated SSRs
|
||||||
if (in_array($part, ['УРСР', 'УССР'], true)) {
|
if (in_array($part, ['УРСР', 'УССР', 'УСРР'], true)) {
|
||||||
$levels['state'] = $part;
|
$levels['state'] = $part;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user