From 681002d8445faa7ed0697759da55475574f117ed Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Mon, 4 Dec 2023 19:22:50 +0100 Subject: [PATCH] Extend lists for Ukrainian place hierarchy indicators --- src/NodaConsolidatedNamesForPlaces.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NodaConsolidatedNamesForPlaces.php b/src/NodaConsolidatedNamesForPlaces.php index 0228b51..01488ed 100644 --- a/src/NodaConsolidatedNamesForPlaces.php +++ b/src/NodaConsolidatedNamesForPlaces.php @@ -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; }