Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dead Languages #85

Open
sixtyfive opened this issue Sep 14, 2021 · 0 comments
Open

Dead Languages #85

sixtyfive opened this issue Sep 14, 2021 · 0 comments

Comments

@sixtyfive
Copy link

Hi, I just stumbled over langid and then, when trying how suitable it'd be for my purposes, stumbled over this:

❯ echo 'در' | langid -l ar,fa,ota
Traceback (most recent call last):
  File "/home/jrs/.local/bin/langid", line 8, in <module>
    sys.exit(main())
  File "/home/jrs/.local/lib/python3.9/site-packages/langid/langid.py", line 504, in main
    identifier.set_languages(langs)
  File "/home/jrs/.local/lib/python3.9/site-packages/langid/langid.py", line 245, in set_languages
    raise ValueError("Unknown language code %s" % lang)
ValueError: Unknown language code ota

What is the project's policy towards ISO-693-2 (as opposed to ISO-693-1 only?). Any chance there'll be support for three-letter codes such as the ota of this example at some point? Or at least a trace-less error message? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant