Multilingual Code-Switching Aligner
SkillAI & modelsAnalyzes mixed English-Spanish text offline and returns a code-mixing ratio plus a suggested language style.
Use Multilingual Code-Switching Aligner in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Multilingual Code-Switching Aligner and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Multilingual Code-Switching Aligner skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
About this skill
Offline experimental English/Spanish lexicon helper for phone-workflow demonstrations. Returns a code-mixing ratio and suggested style; no ASR or LLM prompt integration is included.
What this skill tells your AI
The instructions your AI receives, as published by calle-ai/awesome-phone-call-agents in skills/call-multilingual-code-switching-aligner/SKILL.md and read by Ahel’s review.
This offline prototype counts a small Spanish vocabulary in supplied text and suggests an English/Spanish mixing style. It does not identify arbitrary matrix languages, support Hinglish, or establish improvements in inclusivity, trust, or cognitive load.
The helper returns a style label only. A separate host could use it as a suggestion, subject to the caller's stated language preference; rapport or cognitive-load benefits are not established.
Scientific Foundation
| Paper / Framework | Relevance |
|---|---|
| Output Language Alignment for CSW | Demonstrates that AI mirroring code-switching frequencies increases user trust and reduces linguistic anxiety. |
| Matrix Language Frame (MLF) model | Myers-Scotton framework for distinguishing embedded words vs the matrix language. |
| FCA Consumer Duty (Vulnerability) | Reduces cognitive load for non-native speakers by allowing them to use their natural hybrid dialects. |
How it works
- Supply a transcript string. An optional host ASR component is outside this contribution.
- It strips punctuation and detects embedded vocabularies to calculate a Code-Mixing Index (CMI).
- The system returns a structured
CodeSwitchingReportcontaining the CMI and the suggestedPromptStyle. - A host may review the suggested style before updating a prompt; the helper performs no prompt or speech mutation.
Decision Matrix
| Code-Mixing Index (CMI) | Derived Prompt Style | Expected LLM Output Behavior |
|---|---|---|
CMI == 0.0 | monolingual_english | Strict monolingual English (standard). |
0.0 < CMI < 0.30 | low_code_switching | Occasional embedded loan words (e.g., "gracias", "pero"). |
CMI >= 0.30 | high_code_switching | Fluid Spanglish; alternating sentence clauses. |
Expected Outcomes & Metrics
Latency is a design target, not a measured integration benchmark.
| Metric | Target | Notes |
|---|---|---|
| CMI Computation Latency | < 5ms | Runs via ultra-fast lexicon matching. |
| Rapport / Trust Score | Not measured | No A/B evaluation of this helper is supplied. |
Limitations & Known Constraints
- Lexicon Coverage: The prototype uses a hardcoded vocabulary set. Production systems should use dynamic NLP models to classify embedded words for any language pair.
- ASR Dependency: Requires an ASR model capable of transcribing code-switched audio without forcing translations (e.g. Whisper large-v3).
Integration
This is an offline text helper. Real-time middleware, ASR, language preferences, and LLM prompt updates are proposed host integration work.
Signals
- GitHub stars
- 104
- Forks
- 528
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
call-multilingual-code-switching-aligner- Source
- github.com/calle-ai/awesome-phone-call-agents
github.com/calle-ai/awesome-phone-call-agents
More in AI & models
Skill · anthropics
More in AI & modelstriage
Skill · mattpocock
More in AI & modelswayfinder
Skill · mattpocock
More in AI & modelsalgorithmic-art
Skill · anthropics
More in AI & modelscode-review-and-quality
Skill · addyosmani
More in AI & modelsmarketing-psychology
Skill · coreyhaines31
More in AI & models