diff --git a/geoconvert/data/countries.py b/geoconvert/data/countries.py index 7589e59..92ae026 100644 --- a/geoconvert/data/countries.py +++ b/geoconvert/data/countries.py @@ -17,7 +17,10 @@ "republik kongo": "CG", # de "republica do congo": "CG", # pt "congo": "CG", # en, fr + # make sure we never mistake it for SD "south sudan": "SS", # en + "sudsudan": "SS", # de + "sudan del sur": "SS", # es } @@ -734,7 +737,6 @@ "st vincent und die grenadinen": "VC", "sudan": "SD", "sudafrika": "ZA", - "sudsudan": "SS", "suriname": "SR", "swasiland": "SZ", "syrien": "SY", @@ -1247,7 +1249,6 @@ "sri lanka": "LK", "esuatini": "SZ", "sudan": "SD", - "sudan del sur": "SS", "suecia": "SE", "suiza": "CH", "surinam": "SR", diff --git a/test_geoconvert.py b/test_geoconvert.py index bb437a8..033627d 100644 --- a/test_geoconvert.py +++ b/test_geoconvert.py @@ -774,7 +774,7 @@ def test_address_to_subdivision_code(self, input_data, kwargs, expected): ("1196 Voie Camillien-Houde, Montréal, QC H3H 1A1, Canada", "CA"), ("Los Angeles, CA\nUnited States", "US"), ("Cabul, Afeganistão", "AF"), - ("Try to find South Sudan in a address", "SS"), + ("Try to find South Sudan in an address", "SS"), # The country code can be found using the capital name in any available language ("Kairo", "EG"), ("Paris", "FR"),