Extend lists for Ukrainian place hierarchy indicators

This commit is contained in:
Joshua Ramon Enslin 2023-12-04 19:22:50 +01:00
parent 40cf5a5112
commit 681002d844
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -229,11 +229,11 @@ final class NodaConsolidatedNamesForPlaces extends NodaConsolidatedNamesAbstract
private static function _rewrite_ukrainian_names_by_hierarchy($name):string {
$identifiersByLevel = [
'state' => [' РСР', 'РСР ', ' губернія', 'губернія '],
'oblast' => ['обл.', 'округа', 'губернії'],
'state' => [' РСР', 'РСР ', ' АРСР', 'АРСР ', ' губернія', 'губернія '],
'oblast' => ['обл.', 'область', 'області', 'округа', 'губернії'],
'region' => ['р-н', 'район'],
'county' => ['повіт'],
'city' => ['м.'],
'city' => ['м.', 'м '],
'parish' => ['волость'],
'village' => ['смт', 'сільська', 'с. ', 'село'],
'district' => [], // Is also р-н; which it is is determined based on position
@ -283,7 +283,7 @@ final class NodaConsolidatedNamesForPlaces extends NodaConsolidatedNamesAbstract
}
// Special case: Abbreviated SSRs
if (in_array($part, ['УРСР', 'УССР'], true)) {
if (in_array($part, ['УРСР', 'УССР', 'УСРР'], true)) {
$levels['state'] = $part;
continue;
}