Language Detector
classification•0 saves
Detects the primary and any secondary languages of a given text, identifies the writing system used, and assesses the formality level, providing a structured response with confidence scoring. This tool is useful for language analysis, translation services, and content localization.
Prompt Text
Detect the language of the following text. Also identify:
- Primary language
- Any secondary languages present
- Script/writing system used
- Formality level (formal, informal, technical, colloquial)
Text:
{{text}}
Response format:
{
"primary_language": "ISO 639-1 code",
"language_name": "English name",
"secondary_languages": [],
"script": "Latin|Cyrillic|Arabic|...",
"formality": "formal|informal|technical|colloquial",
"confidence": 0.0-1.0
}Evaluation Results
1/28/2026
Overall Score
4.74/5
Average across all 3 models
Best Performing Model
Low Confidence
openai:gpt-5-mini
4.83/5
openai:gpt-5-mini
#1 Ranked
4.83
/5.00
adh
4.9
cla
4.8
com
4.8
In
1,038
Out
1,432
Cost
$0.0031
google:gemini-2.5-flash-lite
#2 Ranked
4.78
/5.00
adh
4.9
cla
4.7
com
4.7
In
1,129
Out
375
Cost
$0.0003
anthropic:claude-3-5-haiku
#3 Ranked
4.62
/5.00
adh
4.3
cla
4.7
com
4.8
In
1,179
Out
881
Cost
$0.0045
Test Case:
