Detect Language
AI-generatedSummary
Detect the language of the provided text content using Apache Tika's language detection API.
Inputs
- Text Content (required) — The text content to detect the language of.
- Options — Additional optional parameters including Content Type Override (to set the Content-Type header), OCR Language (Tesseract language code for OCR processing), OCR Strategy (handling PDFs with embedded text/images), and Password (for encrypted documents). These are optional and primarily used for document processing scenarios.
Output shape
a single JSON object per input item containing a 'language' property with the detected language code as a string
Returns one output item for each input, each containing a 'language' string in the JSON body. No binary data is returned. Errors in processing any item can be handled with continueOnFail settings, returning an error message in the JSON.
Examples
Example 1: Detect language from a text snippet in English
Provide the English text in the 'Text Content' input; no additional options needed as this operation only uses text input.