pycountry
pycountry copied to clipboard
Implement fuzzy search on languages
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 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)