tgherzog / wbgapi

Python module that makes using the World Bank's API a lot easier and more intuitive.
MIT License
140 stars 31 forks source link

Country name resolution #7

Closed tgherzog closed 4 years ago

tgherzog commented 4 years ago

One really useful feature would be to map country names and their variations to ISO3 codes. So for example, "Egypt", "Egypt, Arab Rep.", "Egypt, Arab Republic of" etc would all map to EGY. Same for "United States of America," "US", "United States", "USA" etc

tgherzog commented 4 years ago

Needs a repeatable set of test cases, including:

tgherzog commented 4 years ago

"United Kingdom of Great Britain and Northern Ireland" (UN members) is currently mapping to "Ireland." Needs basic weighting of comparison patterns