Class_generator/js
StillHammer 30fb6cd46c Fix Fill the Blank with intelligent word selection and real sentences
🚨 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>
2025-09-20 12:51:18 +08:00
..
content Add epic animations to Word Storm good/bad responses 2025-09-20 12:09:44 +08:00
core Add epic animations to Word Storm good/bad responses 2025-09-20 12:09:44 +08:00
games Fix Fill the Blank with intelligent word selection and real sentences 2025-09-20 12:51:18 +08:00
tools Fix compatibility system and improve UX 2025-09-18 19:29:21 +08:00