Language Detector
Instantly identify the language and script of any text snippet.
A powerful tool that detects the primary language of a given text, providing ISO codes, native names, and confidence scores. It also identifies the script used and provides alternative language candidates for ambiguous inputs.
How it works
Three steps. No complex setup.
Text Submission
The user provides a text string of any length to the detection endpoint.
Statistical Analysis
The engine analyzes character frequencies, n-grams, and script patterns against known language models.
Result Generation
The system returns the most likely language, confidence levels, and a list of potential alternatives.
Who is it for?
Response example
Real input and output. What you send and what you get back.
// Input
{
"text": "El veloz murciélago hindú comía feliz cardillo y escabeche."
}// Output
{
"language_code": "es",
"language_name_en": "Spanish",
"language_name_native": "Español",
"confidence": 0.99,
"script": "Latin",
"candidates": [
{
"language_code": "es",
"language_name_en": "Spanish",
"confidence": 0.99
},
{
"language_code": "pt",
"language_name_en": "Portuguese",
"confidence": 0.01
},
{
"language_code": "it",
"language_name_en": "Italian",
"confidence": 0
}
],
"text_length": 59,
"error": null
}Try it now
// live demo — no account needed to try
Playground
Integrate into your project
Copy and paste. Replace YOUR_API_KEY with your real key.
curl -X POST https://jsnhengine.com/api/trpc/languageDetector.detect \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"json": {"text":"El veloz murciélago hindú comía feliz cardillo y escabeche."}}'Why choose JSNH Engine Lab
Low latency
Responses in under 200ms
Secure authentication
API keys with per-plan rate limiting
Usage tracking
Every request logged with metrics
Production ready
Input validation and typed errors
Frequently asked questions
Everything you need to know before integrating.
Other modules
Expand your integration with more APIs from the catalogue.
Email Validator API
Validate email addresses instantly. Detect fake, disposable and invalid emails.
1 token / call →
Phone Validator API
Validate phone numbers from any country. Detect carrier, line type and E.164 format.
1 token / call →
URL Checker API
Verify URL accessibility, detect redirects, and extract SEO metadata instantly.
2 tokens / call →
// production ready
Start using Language Detector
Sign up free and get 1,000 tokens to start. No credit card. No complex setup.