GnistAI GnistAI
Log in

Language Detection

Detect the language of text with confidence scores — supports 55 languages including CJK.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 Utilities

Data source: langdetect (open source, port of Google's language-detection)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/language-detection/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-language-detection": {
      "url": "https://context.gnist.ai/mcp/language-detection/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/language-detection/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "detect_language", "arguments": {"text": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/language-detection/

3 endpoints available:

Shell
curl "https://context.gnist.ai/rest/language-detection/detect_language?text=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/language-detection/detect_language",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "text": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc language-detection

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (3)

detect_language
Detect the language of a text passage with confidence scores.
ParameterTypeRequiredDescription
textstringrequired
get_supported_languages
List all languages that can be detected.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related