• A blazing fast language detection using fastText’s language models

Luga is a Swahili word for language. fastText provides a blazing fast
language detection. It is though a bit funky to download and load models.
fastText API is also beauty-less. This is why luga was born.


python -m pip install -U luga


Note: First usage downloads the model for you. This is done only once.

from luga import language

print(language("the world has ended yesterday"))

Comming soon …


  • refactor
  • auto checkers with pre-commit | invoke
  • write more tests
  • write github actions
  • create a smart data checker (a fast List[str], what do with none strings)
  • make it faster with Cython


View Github