Detects the most likely language of a given text
The text to analyze
Minimum text length for reliable detection (default: 4)
Additional options for detection
Language detection result with confidence score
detectLanguage('Bonjour le monde'); // { language: 'French', ... } Copy
detectLanguage('Bonjour le monde'); // { language: 'French', ... }
Detects the most likely language of a given text