pycountry icon indicating copy to clipboard operation
pycountry copied to clipboard

Implement fuzzy search on languages

Open xpayn opened this issue 4 years ago • 1 comments

It would be nice to be able to search languages as it is possible with countries.

My use case is to implement a helper endpoint for autocomplete in a frontend form.

xpayn avatar Dec 03 '21 09:12 xpayn

@xpayn I just deployed a search_fuzzy method for Subdivisions. Could you help write a user story? Specifically if you could write a 2-3 examples of different search terms and what you'd expect to be returned that could help with development.

variable = "search_term"
languages = pycountry.languages.search_fuzzy(variable)
print(languages)

nschimmoller avatar Dec 11 '23 17:12 nschimmoller