pycountry icon indicating copy to clipboard operation
pycountry copied to clipboard

Support returning first result from fuzzy search instead of array of results

Open sonercirit opened this issue 4 years ago • 1 comments

I think pycountry should have a new method for returning the first result from fuzzy search instead of executing all the conditions all the time.

The execution time and speed would be faster for large data sets.

I can do this if you're interested.

sonercirit avatar Oct 01 '20 19:10 sonercirit

Yeah, that sounds like a good idea. However, fuzzy search has a ranking mechanism where first isn't immediately known, so I'm not sure how that would work (or rather, I have the impression this won't work).

ctheune avatar Mar 06 '22 09:03 ctheune