jmsv / ety-python

A Python module to discover the etymology of words
http://ety-python.rtfd.io
MIT License
144 stars 18 forks source link

Any word with generic Nahuatl language will raise exception #54

Closed gwilken closed 5 years ago

gwilken commented 5 years ago

Language code for Nahuatl is missing.

print(ety.tree('avocado'))

Will raise an exception: "Language with iso code 'nah' unknown"

ISO 639 specifies it: https://en.wikipedia.org/wiki/Template:ISO_639_name_nah

Recommend adding it to data/iso-639-3.json

btw thank you! awesome work!

jmsv commented 5 years ago

Ah, well spotted! Looks like ety uses an incomplete ISO 639-3 dataset.

Will looking into swapping it out for a different one soon, otherwise will just add it to the existing ISO 639-3 data.

jmsv commented 5 years ago

fixed in v1.3.2 🎉