Langid Language Codes and Confidence | Generated by AI

Home 2025.08

In langid, the classify(text) function returns a tuple (lang, confidence) where:

The set of possible values for lang comes from the languages supported by langid.py. Out of the box, it includes 97 languages. Some common examples:

And many others — the full list covers most major world languages (Afrikaans, Bengali, Greek, Hebrew, Italian, Portuguese, Swahili, Thai, Turkish, Vietnamese, etc.).

👉 If you want, I can give you the complete list of all 97 codes supported by langid. Would you like me to output that?


Back Donate