# Microgram: spanglish-primitives

`station__algovigilance__microgram-spanglish-primitives` · native (always callable) · domain `algovigilance` · 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.

## Agent metadata

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

## Input schema

- `text_fragment` *string* (required) — Clinical text fragment, possibly Spanglish
- `speaker_bilingual` *boolean* — Is the speaker known to be bilingual? Enables null-switch detection.

## Example call

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

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

## Related

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