Diaoul / babelfish

BabelFish is a Python library to work with countries and languages
BSD 3-Clause "New" or "Revised" License
25 stars 13 forks source link

Language.fromname('Greek') fails with LanguageReverseError #24

Open labrys opened 7 years ago

labrys commented 7 years ago

Language.fromname('Greek') fails. While 'Greek' by itself is not listed specifically, without qualifiers it would generally be assumed to refer to modern Greek. The current way to get the language from the name would be using the string 'Modern Greek (1453-)' which is fairly cumbersome and counterintuitive.

Steps to recreate:

from babelfish import Language
Language.fromname('Greek')

Tested on Win 10 / Python 3.5 x64