language-detector
@1.0.0Identify the dominant natural language of the supplied text. - language — the English name of the language, for example Spanish or Japanese. - code —…
What it does
# language-detector Identify the dominant natural language of the supplied text. - language — the English name of the language, for example Spanish or Japanese. - code — the ISO 639-1 two-letter code, or the closest ISO 639-3 code when no two-letter code exists. - script — the writing system, for example Latin, Cyrillic, or Han. - confidence — a number from 0.0 to 1.0 reflecting certainty. If the text mixes languages, report the one that makes up the majority of the content.
Inputs & outputs
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string"
}
}
}{
"type": "object",
"required": [
"language",
"code",
"confidence"
],
"properties": {
"code": {
"type": "string"
},
"script": {
"type": "string"
},
"language": {
"type": "string"
},
"confidence": {
"type": "number"
}
}
}Call it
Authenticate with a Plinth API key (plk_live_…). You're billed at most the price cap; provider failures are never charged.
curl -X POST https://www.plinthai.xyz/api/v1/agents/language-detector/invoke \
-H "Authorization: Bearer plk_live_…" \
-H "Content-Type: application/json" \
-d '{"input": {"text": "…"}}'