Git Product home page Git Product logo

countrynames's People

Contributors

boolean5 avatar dependabot-preview[bot] avatar divtiply avatar gsime1 avatar louispotok avatar mynameisfiber avatar pudo avatar radwo avatar rgieseke avatar sunu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

countrynames's Issues

python yaml is slow

Python yaml loader is way slower than the json loader.

Replacing data.yaml file with a json file would speed up considerably the loading time of this library (several seconds on a modern computer).

Get rid of pycountry

Hey @rgieseke, I'm having some issues with pycountry, in particular the fact that it's missing countries (like Kosovo) and has given up on iso-639-1 codes for languages. Replacing it from this library would be relatively simple, were it not for all the aliasing functions (to_name, to_official_name, to_numeric) which are dependent on the full pycountry dataset. Are you using this? Would you be able to top out the version of countrynames in the places where you depend on it so that newer versions can get rid of the dependency?

Improve fuzzy matching

@pudo I've committed a fix for typoed islands (like "Falklands Islands") not having a chance in fuzzy matching against "Island" (leading to a longer than one list of matches). I think there are further improvements possible, like a Levenshtein matching that stops computing after the distance is too long or checking each group for matches instead of all from one country to speed up fuzzy matching.

I've also changed the test script to use py.test, I hope that's fine with you.

How to view logging

Thanks so much for this great package. However, I'm having some issues trying to view the log.DEBUG info for _fuzzy_search. Any guidance on where to find this logging info would be greatly appreciated.

Egypt is not recognized in Arabic

countrynames.to_code("مصر") does not return the code for Egypt ("EG"), even though this is the name of Egypt in its official language.

What was the reason for commenting this line out in 1e2b4b2?

I've created PR #38 that you can review and merge if you agree with the suggested change.

pyicu dependency

countrynames depends on normality which as of version 1 depends on pyicu -
pyicu can be hard to install, so a workaround might be to pin to a pre-1.0 version of normality

See discussion in
pudo/normality#6

Sark

Sark is included in FAIL as well as in GG (Guernsey)

It was introduced in 01caa4e

Should we remove that from FAIL @gsime1 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.