Skip to content

Conversation

@missinglink
Copy link
Member

I noticed this issue today over at libpostal and we have the same problem for users specifying 'Korea' instead of 'South Korea' or 'North Korea'.

I went ahead and added a bunch of tests and tried to improve country detection where possible but I didn't have time to fix all the test cases, so some are commented out for now.

@missinglink
Copy link
Member Author

I got the list of countries from here https://gist.github.com/kalinchernev/486393efcca01623b18d and it's not the best list ever (contains abbreviations and other additional tokens) but I wanted a list that was sourced from outside our existing dictionaries.

@missinglink
Copy link
Member Author

Hmm... in hindsight this isn't quite right, for instance I put !singapore in the locality file when this is both a city & a country.

@Joxit
Copy link
Member

Joxit commented Nov 28, 2019

Yep, same thing for Luxembourg ^^"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants