Class_generator/js/content/french-beginner-story.js
StillHammer e50dd624a0 Add comprehensive game suite with TTS integration and content modules
🎮 NEW GAMES:
- River Run: Endless runner with word collection and guaranteed target spawning
- Grammar Discovery: Focused grammar learning with 8-step rotation cycles
- Letter Discovery: Letter-first alphabet learning with progression system
- Enhanced Word Discovery: Shuffled practice mode with image support and auto-TTS

📚 NEW CONTENT MODULES:
- WTA1B-1: English letters U,V,T with pets vocabulary and Chinese translation
- SBS-1: English "To Be" introduction with comprehensive grammar lessons
- French Beginner Story: Story content for English speakers learning French

🔊 TTS ENHANCEMENTS:
- Story Reader: Multi-story support with TTS for sentences and individual words
- Adventure Reader: Auto-TTS for vocabulary popups and sentence modals
- Word Discovery: Immediate TTS playback with difficulty-based speed control
- Integrated SettingsManager compatibility across all games

🎯 GAMEPLAY IMPROVEMENTS:
- River Run: Target word guaranteed within 10 spawns, progressive spacing
- Story Reader: Story selector dropdown with independent progress tracking
- Adventure Reader: Fixed HUD overlap issue with proper viewport spacing
- Enhanced punctuation preservation in Story Reader word parsing

 SYSTEM UPDATES:
- Content scanner integration for all new modules
- Game loader mappings for seamless content discovery
- Simplified content titles: "WTA1B-1" and "SBS-1" for easy identification
- Comprehensive test files for isolated game development

🎉 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-20 09:15:01 +08:00

524 lines
21 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// === CHINESE BEGINNER STORY ===
// Histoire chinoise pour débutants+ avec traduction française et prononciation pinyin
window.ContentModules = window.ContentModules || {};
window.ContentModules.FrenchBeginnerStory = {
id: "french-beginner-story",
name: "Le Jardin Magique - The Magic Garden",
description: "Simple French story for English speakers",
difficulty: "beginner-plus",
language: "fr-FR", // Target language = français
userLanguage: "en-US", // User language = anglais
totalWords: 15,
type: "story_course",
// === GRAMMAIRE DE BASE ===
grammar: {
"basic-sentence-structure": {
title: "French Basic Sentence Structure - Structure de Phrase Française",
explanation: "French follows Subject-Verb-Object order like English, but with some important differences.",
mainRules: [
"Subject + Verb + Object (Je mange une pomme - I eat an apple)",
"French verbs conjugate according to the subject (je mange, tu manges, il mange)",
"Adjectives usually come after the noun (une fleur rouge - a red flower)",
"French nouns have gender (masculine/feminine)"
],
examples: [
{
french: "J'aime les fleurs",
english: "I love flowers",
pronunciation: "ʒɛm le flœʁ",
explanation: "Basic structure: Je(I) + aime(love) + les fleurs(flowers)"
},
{
french: "Le jardin est très beau",
english: "The garden is very beautiful",
pronunciation: "lə ʒaʁdɛ̃ ɛ tʁɛ bo",
explanation: "être(to be) + adjective structure"
}
],
detailedExplanation: {
"subject-verb-object": {
title: "Ordre Sujet-Verbe-Objet",
explanation: "Le chinois suit la même logique que le français pour l'ordre des mots de base.",
pattern: "Sujet + Verbe + Objet",
examples: [
{
chinese: "小猫吃鱼",
english: "Le petit chat mange du poisson",
pronunciation: "xiǎo māo chī yú",
breakdown: "小猫(petit chat) + 吃(manger) + 鱼(poisson)"
},
{
chinese: "我看书",
english: "Je lis un livre",
pronunciation: "wǒ kàn shū",
breakdown: "我(je) + 看(regarder/lire) + 书(livre)"
}
]
},
"adjectives": {
title: "Utilisation des Adjectifs",
explanation: "Les adjectifs peuvent être utilisés directement après 很 (très) sans verbe 'être'.",
pattern: "Sujet + 很 + Adjectif",
examples: [
{
chinese: "花很红",
english: "La fleur est très rouge",
pronunciation: "huā hěn hóng",
breakdown: "花(fleur) + 很(très) + 红(rouge)"
}
]
}
},
commonMistakes: [
{
mistake: "Conjuguer les verbes",
wrong: "我吃了,你吃着,他吃的",
correct: "我吃,你吃,他吃",
explanation: "Les verbes chinois ne se conjuguent pas selon la personne"
},
{
mistake: "Oublier 很 avec les adjectifs",
wrong: "花园美",
correct: "花园很美",
explanation: "Utiliser 很 devant les adjectifs pour une phrase complète"
}
],
practicePoints: [
"Commencez par des phrases simples : Sujet + Verbe + Objet",
"Utilisez 很 + adjectif pour décrire",
"Pas de conjugaison = plus simple !",
"Écoutez la mélodie de la langue chinoise"
]
}
},
// === VOCABULAIRE FRANÇAIS POUR APPRENANTS CHINOIS (15+ mots) ===
vocabulary: {
"fleur": {
user_language: "flower",
type: "noun",
pronunciation: "flœʁ",
gender: "feminine"
},
"jardin": {
user_language: "garden",
type: "noun",
pronunciation: "ʒaʁdɛ̃",
gender: "masculine"
},
"arbre": {
user_language: "tree",
type: "noun",
pronunciation: "aʁbʁ",
gender: "masculine"
},
"petit": {
user_language: "small/little",
type: "adjective",
pronunciation: "pəti"
},
"grand": {
user_language: "big/large",
type: "adjective",
pronunciation: "ɡʁɑ̃"
},
"beau": {
user_language: "beautiful/handsome",
type: "adjective",
pronunciation: "bo"
},
"rouge": {
user_language: "red",
type: "adjective",
pronunciation: "ʁuʒ"
},
"vert": {
user_language: "green",
type: "adjective",
pronunciation: "vɛʁ"
},
"je": {
user_language: "I",
type: "pronoun",
pronunciation: "ʒə"
},
"tu": {
user_language: "you",
type: "pronoun",
pronunciation: "ty"
},
"regarder": {
user_language: "to look/watch",
type: "verb",
pronunciation: "ʁəɡaʁde"
},
"aimer": {
user_language: "to love/like",
type: "verb",
pronunciation: "ɛme"
},
"très": {
user_language: "very",
type: "adverb",
pronunciation: "tʁɛ"
},
"avoir": {
user_language: "to have",
type: "verb",
pronunciation: "avwaʁ"
},
"chat": {
user_language: "cat",
type: "noun",
pronunciation: "ʃa",
gender: "masculine"
},
"mignon": {
user_language: "cute/adorable",
type: "adjective",
pronunciation: "miɲɔ̃"
},
"maintenant": {
user_language: "now",
type: "adverb",
pronunciation: "mɛ̃tnɑ̃"
}
},
// === STRUCTURE PAR LETTRES POUR LETTER DISCOVERY ===
letters: {
"A": [
{
word: "arbre",
translation: "tree",
pronunciation: "aʁbʁ",
type: "noun",
gender: "masculine"
},
{
word: "aimer",
translation: "to love/like",
pronunciation: "ɛme",
type: "verb"
},
{
word: "avoir",
translation: "to have",
pronunciation: "avwaʁ",
type: "verb"
}
],
"B": [
{
word: "beau",
translation: "beautiful/handsome",
pronunciation: "bo",
type: "adjective"
},
{
word: "beaucoup",
translation: "a lot/much",
pronunciation: "boku",
type: "adverb"
}
],
"C": [
{
word: "chat",
translation: "cat",
pronunciation: "ʃa",
type: "noun",
gender: "masculine"
}
],
"F": [
{
word: "fleur",
translation: "flower",
pronunciation: "flœʁ",
type: "noun",
gender: "feminine"
}
],
"G": [
{
word: "grand",
translation: "big/large",
pronunciation: "ɡʁɑ̃",
type: "adjective"
}
],
"J": [
{
word: "jardin",
translation: "garden",
pronunciation: "ʒaʁdɛ̃",
type: "noun",
gender: "masculine"
},
{
word: "je",
translation: "I",
pronunciation: "ʒə",
type: "pronoun"
}
],
"M": [
{
word: "mignon",
translation: "cute/adorable",
pronunciation: "miɲɔ̃",
type: "adjective"
},
{
word: "maintenant",
translation: "now",
pronunciation: "mɛ̃tnɑ̃",
type: "adverb"
}
],
"P": [
{
word: "petit",
translation: "small/little",
pronunciation: "pəti",
type: "adjective"
}
],
"R": [
{
word: "rouge",
translation: "red",
pronunciation: "ʁuʒ",
type: "adjective"
},
{
word: "regarder",
translation: "to look/watch",
pronunciation: "ʁəɡaʁde",
type: "verb"
}
],
"T": [
{
word: "tu",
translation: "you",
pronunciation: "ty",
type: "pronoun"
},
{
word: "très",
translation: "very",
pronunciation: "tʁɛ",
type: "adverb"
}
],
"V": [
{
word: "vert",
translation: "green",
pronunciation: "vɛʁ",
type: "adjective"
}
]
},
// === HISTOIRE SIMPLE ===
story: {
title: "Le Jardin Magique - 魔法花园",
totalSentences: 8,
chapters: [
{
title: "第一章:美丽的花园 (Chapitre 1: Le Beau Jardin)",
sentences: [
{
id: 1,
original: "J'ai un petit jardin.",
translation: "I have a small garden.",
words: [
{word: "J'", translation: "I", type: "pronoun", pronunciation: "ʒ"},
{word: "ai", translation: "have", type: "verb", pronunciation: "e"},
{word: "un", translation: "a", type: "article", pronunciation: "œ̃"},
{word: "petit", translation: "small", type: "adjective", pronunciation: "pəti"},
{word: "jardin", translation: "garden", type: "noun", pronunciation: "ʒaʁdɛ̃"}
]
},
{
id: 2,
original: "Dans le jardin, il y a beaucoup de belles fleurs.",
translation: "花园里有很多美丽的花。",
words: [
{word: "Dans", translation: "在", type: "preposition", pronunciation: "dɑ̃"},
{word: "le", translation: "这个", type: "article", pronunciation: "lə"},
{word: "jardin", translation: "花园", type: "noun", pronunciation: "ʒaʁdɛ̃"},
{word: "il y a", translation: "有", type: "verb", pronunciation: "il i a"},
{word: "beaucoup", translation: "很多", type: "adverb", pronunciation: "boku"},
{word: "de", translation: "的", type: "preposition", pronunciation: "də"},
{word: "belles", translation: "美丽的", type: "adjective", pronunciation: "bɛl"},
{word: "fleurs", translation: "花", type: "noun", pronunciation: "flœʁ"}
]
},
{
id: 3,
original: "Il y a des fleurs rouges et des arbres verts.",
translation: "有红花和绿树。",
words: [
{word: "Il y a", translation: "有", type: "verb", pronunciation: "il i a"},
{word: "des", translation: "一些", type: "article", pronunciation: "de"},
{word: "fleurs", translation: "花", type: "noun", pronunciation: "flœʁ"},
{word: "rouges", translation: "红色的", type: "adjective", pronunciation: "ʁuʒ"},
{word: "et", translation: "和", type: "conjunction", pronunciation: "e"},
{word: "des", translation: "一些", type: "article", pronunciation: "de"},
{word: "arbres", translation: "树", type: "noun", pronunciation: "aʁbʁ"},
{word: "verts", translation: "绿色的", type: "adjective", pronunciation: "vɛʁ"}
]
},
{
id: 4,
original: "J'aime beaucoup mon jardin.",
translation: "我很喜欢我的花园。",
words: [
{word: "J'", translation: "我", type: "pronoun", pronunciation: "ʒ"},
{word: "aime", translation: "喜欢", type: "verb", pronunciation: "ɛm"},
{word: "beaucoup", translation: "很", type: "adverb", pronunciation: "boku"},
{word: "mon", translation: "我的", type: "pronoun", pronunciation: "mɔ̃"},
{word: "jardin", translation: "花园", type: "noun", pronunciation: "ʒaʁdɛ̃"}
]
}
]
},
{
title: "第二章:小猫来了 (Chapitre 2: Le Petit Chat Arrive)",
sentences: [
{
id: 5,
original: "一天,一只小猫来到花园。",
translation: "Un jour, un petit chat est venu dans le jardin.",
words: [
{word: "一天", translation: "un jour", type: "noun", pronunciation: "yì tiān"},
{word: "一只", translation: "un (classificateur)", type: "number", pronunciation: "yì zhī"},
{word: "小猫", translation: "petit chat", type: "noun", pronunciation: "xiǎo māo"},
{word: "来到", translation: "venir à", type: "verb", pronunciation: "lái dào"},
{word: "花园", translation: "jardin", type: "noun", pronunciation: "huā yuán"}
]
},
{
id: 6,
original: "小猫看花,我看小猫。",
translation: "Le petit chat regarde les fleurs, moi je regarde le petit chat.",
words: [
{word: "小猫", translation: "petit chat", type: "noun", pronunciation: "xiǎo māo"},
{word: "看", translation: "regarder", type: "verb", pronunciation: "kàn"},
{word: "花", translation: "fleur", type: "noun", pronunciation: "huā"},
{word: "我", translation: "je", type: "pronoun", pronunciation: "wǒ"},
{word: "看", translation: "regarder", type: "verb", pronunciation: "kàn"},
{word: "小猫", translation: "petit chat", type: "noun", pronunciation: "xiǎo māo"}
]
},
{
id: 7,
original: "小猫很可爱。",
translation: "Le petit chat est très mignon.",
words: [
{word: "小猫", translation: "petit chat", type: "noun", pronunciation: "xiǎo māo"},
{word: "很", translation: "très", type: "adverb", pronunciation: "hěn"},
{word: "可爱", translation: "mignon", type: "adjective", pronunciation: "kě ài"}
]
},
{
id: 8,
original: "现在,花园更美了。",
translation: "Maintenant, le jardin est encore plus beau.",
words: [
{word: "现在", translation: "maintenant", type: "adverb", pronunciation: "xiàn zài"},
{word: "花园", translation: "jardin", type: "noun", pronunciation: "huā yuán"},
{word: "更", translation: "encore plus", type: "adverb", pronunciation: "gèng"},
{word: "美", translation: "beau", type: "adjective", pronunciation: "měi"},
{word: "了", translation: "particule d'aspect", type: "particle", pronunciation: "le"}
]
}
]
}
]
},
// === EXERCICES DE COMPRÉHENSION ===
fillInBlanks: [
{
sentence: "J'___ un petit jardin",
options: ["ai", "es", "regarde", "très"],
correctAnswer: "ai",
explanation: "使用 'ai' 表示拥有 - Use 'ai' to express possession (I have)"
},
{
sentence: "Le jardin est ___ beau",
options: ["ai", "très", "dans", "de"],
correctAnswer: "très",
explanation: "使用 'très' + 形容词 - Use 'très' + adjective"
},
{
sentence: "Le petit chat ___ les fleurs",
options: ["regarde", "ai", "très", "de"],
correctAnswer: "regarde",
explanation: "'regarde' 意思是看/观察 - 'regarde' means to look/observe"
},
{
sentence: "J'___ beaucoup mon jardin",
options: ["aime", "beau", "petit", "rouge"],
correctAnswer: "aime",
explanation: "'aime' 表示喜爱 - 'aime' expresses liking"
},
{
sentence: "Dans le jardin, il y ___ beaucoup de fleurs",
options: ["a", "regarde", "très", "petit"],
correctAnswer: "a",
explanation: "'il y a' 表示存在 - 'il y a' expresses existence"
}
],
// === CORRECTIONS D'ERREURS ===
corrections: [
{
incorrect: "Je suis aimer le jardin",
correct: "J'aime le jardin",
explanation: "不需要 'suis',直接用动词 'aime' - No need for 'suis', use verb 'aime' directly"
},
{
incorrect: "Le jardin beau",
correct: "Le jardin est très beau",
explanation: "需要动词 'est' 和副词 'très' - Need verb 'est' and adverb 'très'"
},
{
incorrect: "Le petit chat a regardé les fleurs",
correct: "Le petit chat regarde les fleurs",
explanation: "简单动作用现在时 - Simple actions use present tense"
}
],
// === PHRASES D'EXEMPLE ===
sentences: [
{
french: "J'ai un beau jardin",
chinese: "我有一个美丽的花园",
pronunciation: "ʒe œ̃ bo ʒaʁdɛ̃"
},
{
french: "Le petit chat est très mignon",
chinese: "小猫很可爱",
pronunciation: "lə pəti ʃa ɛ tʁɛ miɲɔ̃"
},
{
french: "Dans le jardin il y a des fleurs rouges et des arbres verts",
chinese: "花园里有红花和绿树",
pronunciation: "dɑ̃ lə ʒaʁdɛ̃ il i a de flœʁ ʁuʒ e dez‿aʁbʁ vɛʁ"
},
{
french: "Je regarde le petit chat, le petit chat regarde les fleurs",
chinese: "我看小猫,小猫看花",
pronunciation: "ʒə ʁəɡaʁd lə pəti ʃa, lə pəti ʃa ʁəɡaʁd le flœʁ"
}
]
};