detect Languages Text
Detects the language of caller-supplied text, fully offline, with no document. CLD3 scores the text directly — nothing is rendered and no file is opened. Use this when you already have the text (an email body, a database field, your own extraction pipeline) rather than a document on disk.
Return
JSON with the predicted language and text direction.
Parameters
text
The text to detect the language of.
Detects the language(s) of caller-supplied text, fully offline, with explicit settings — raise to report more than one language in mixed text. Without settings the dominant language only is returned.
Return
JSON with the predicted language(s) and text direction.
Parameters
text
The text to detect the language(s) of.
settings
Document settings; bounds how many languages are reported.