detect_code_switching
Detect mixed-language (code-switched) text -- per-word language identification across 75 languages, returning a per-word breakdown plus an overall code_switched verdict. The mixed/not-mixed verdict is reliable; per-word attribution for very short words is best-effort and excluded from the verdict. The first call in a session can take longer than later ones.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "detect_code_switching"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to check for code-switching (mixed-language input). |