Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved detection of countries #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

improved detection of countries #80

wants to merge 1 commit into from

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.

2 participants