🚨 MAJOR FIXES:
- Remove all hardcoded French templates (60+ lines of garbage)
- Replace with real sentence extraction from content
- Support story.chapters, rawContent.story, and sentences arrays
- Universal language support (English/Chinese, not French-only)
🎯 INTELLIGENT WORD SELECTION:
- Priority 1: Words from content vocabulary (educational value)
- Priority 2: Longest words if vocabulary not available
- Max 1-2 blanks per sentence (random) for readability
- Universal logic works for all languages (Chinese, English, etc.)
🔧 TECHNICAL IMPROVEMENTS:
- Clean punctuation before vocabulary matching
- Case-insensitive word comparison
- Proper fallback sentences with correct target language
- Better sentence filtering (min 3 words for blanks)
✅ RESULT:
- WTA1B1 now shows English sentences with Chinese translations
- Targets vocabulary words (turtle, umbrella, violet, etc.)
- No more "Je vois un..." French garbage
- Works universally for any language content
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>