LanguageDetector

Methods

detect

(input, options) => AILanguageDetectorDetectResult[]

This prompts the language model to detect which language is being used in the input text

Input

A string

Options (optional)

signal optional AbortSignal

Returns an array of detection results from the language model

Last updated