call-multilingual-code-switching-aligner
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "call-multilingual-code-switching-aligner" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d760052c83196cfd42fbec32d27c20431b1e03304010639fc80c045ca0041c99. Verify the upstream source and version against https://github.com/CALLE-AI/awesome-phone-call-agents before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
An offline experimental English/Spanish lexicon assistant for mobile workflow demos. Returns code-switching ratios and suggested styles; does not include speech recognition or LLM prompt integration.
Introduction source: third_party · CALLE-AI · 1.0.0 Reference
SkillPi interpretation
- Tasks
- 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.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- **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).
- Testing
- Not tested
Browse files
Frontmatter
name: call-multilingual-code-switching-aligner
description: 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.
version: 1.0.0Multilingual Code-Switching Aligner
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.
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 具备明确的语码混合分析算法和决策矩阵
- 面向特定研究/工作流场景,解决小众语言处理需求
Highlights
- description 明确界定功能边界,排除 ASR/LLM 集成
- 触发词覆盖合理,不易与其他 Skill 重叠
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档已有使用场景描述但未按标准命名章节
Recommendation: 建议添加显式 'When to Use' 章节以提升规范性
Highlights
- CMI 计算逻辑清晰,阈值定义明确
- 作为只读分析工具无不可逆操作风险
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.