OtoUrhobo Haven β Learn, Speak, and Translate Urhobo
# π OtoUrhobo Haven β Ultimate Urhobo Language & Culture Suite
OtoUrhobo Haven is a professional, high-performance, and feature-rich language suite designed to preserve, teach, and translate the **Urhobo language** (a Southwestern Edoid language of Delta State, Nigeria).
Built with **Vite + React + TypeScript + Tailwind CSS**, the application replicates a Duolingo-style interactive learning experience combined with Google Translate-style deep linguistic processing, offline rule-based translation, and online **Vambo AI** deep learning integration.
---
## π Core Features
### 1. ποΈ Advanced Syllabic Speech Engine (`voiceEngine.ts`)
Standard Text-to-Speech (TTS) engines do not natively support Urhobo, often falling back to spelling words out letter-by-letter. To solve this, OtoUrhobo Haven implements a **dynamic phonetic compilation layer**:
* **Letter-to-Sound Mapping**: Maps complex Edoid digraphs (`gb`, `kp`, `ghw`, `rh`, `ph`, `dj`, `ny`) and open vowels (`αΊΉ` / `/Ι/`, `α»` / `/Ι/`) into optimized English syllabic equivalents.
* **Spelling-out Prevention**: Strips hyphens and automatically converts short verbs (like *re*, *da*, *se*, *do*) into phonetic equivalents (like *ray*, *dah*, *say*, *dough*) to guarantee smooth, word-level natural speech.
* **Phonetic Speech Recognition (STT)**: Since browser speech engines are trained on English, the app maps English transcriptions back into Urhobo words using sound-alike indexes and Levenshtein distance matching. This allows the app to analyze spoken Urhobo and give users a real-time **accuracy score (0β100%)**!
### 2. π Smart SVO Hybrid Translation Engine (`translatorEngine.ts`)
The translator supports offline, high-fidelity English β Urhobo translation with structural analysis:
* **Offline POS Tagging**: Identifies pronouns, verbs, nouns, and adjectives.
* **Grammatical Reordering Rules**: Urhobo places adjectives and possessives *after* nouns (e.g., *"my big house"* becomes *"house big my"* or *"uwevwi rode mαΊΉ"*). β¦