Description
Detects the likely language of UTF-8 plain text, HTML, or XML using the CLD2 library. It is useful for developers building search, indexing, moderation, translation, or text-routing features that need a language hint.
Language detection is probabilistic and can be wrong on short, mixed, or noisy text. Treat results as signals for software behavior, not as proof of a user's identity or nationality.