# run-spanglish-primitives

`station__microgram__run-spanglish-primitives` · external (needs EXECUTION_BACKEND_URL configured) · domain `microgram` · pv-relevance `pv-core`

Classifies the 6 Spanglish primitives — boundary phenomena that exist ONLY at the code-switch interface between Spanish and English. These are not Spanish primitives or English primitives. They are interference-pattern primitives that emerge when two linguistic systems collide. The 6 Spanglish Primitives: ∂_switch — The boundary itself. WHERE the language changes. The switch point carries information that neither language alone encodes. μ_frame — Frame-content split. WHICH language provides grammar (frame) vs vocabulary (content). "Está feeling dizzy" = Spanish frame, English content. The split IS the mapping. →_direction — Switch direction. WHY the speaker crossed. es→en for symptoms means English lacks the nuance. en→es means Spanish temporal precision was invoked. Direction encodes intent. κ_boost — Confidence differential. HOW MUCH stronger is dual-encoding vs single? The effort of switching amplifies the signal. +20 estar, +15 tener, +10 sentirse, 0 ser, 0 pure-English. ν_rate — Switch frequency. HOW OFTEN boundaries appear in the text. High = fully bilingual. Low = dominant language with borrowings. Rate determines transducer bandwidth. ∅_null — The null switch. WHERE a switch COULD have happened but DIDN'T. A bilingual speaker who says "is dizzy" when they could have said "está dizzy" made an unconscious classification: the symptom didn't warrant temporal precision. Absence = signal.

> **Note:** This tool routes through an external execution backend. If `EXECUTION_BACKEND_URL` is unset on the server, calls return JSON-RPC error `-32603 "Tool execution backend not configured"`. Tools with `backend: native` execute in-process and are always callable.

## Agent metadata

- `idempotent`: unknown
- `read_only`: unknown
- `expected_latency_ms`: unknown (not yet contract-tested)
- `cost_tokens_estimate`: unknown

## Input schema

- `text_fragment` *string* (required) — Input parameter: text_fragment
- `speaker_bilingual` *boolean* (required) — Input parameter: speaker_bilingual

## Example call

```json
POST /api/mcp
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__microgram__run-spanglish-primitives",
    "arguments": {
      "text_fragment": "",
      "speaker_bilingual": false
    }
  }
}
```

## Related

- [/tools](/tools) — all 3062 tools
- [/tools/microgram__run-spanglish-primitives](/tools/microgram__run-spanglish-primitives) — HTML page
- [/tools/microgram__run-spanglish-primitives/json](/tools/microgram__run-spanglish-primitives/json) — JSON form (agent-friendly)
- [/api/mcp](/api/mcp) — endpoint
- [/AGENTS.md](/AGENTS.md) — agent guide
