Class_generator/js/content/basic-chinese.js
StillHammer b004382cee Initial commit: Interactive English Learning Platform
- Complete SPA architecture with dynamic module loading
- 9 different educational games (whack-a-mole, memory, quiz, etc.)
- Rich content system supporting multimedia (audio, images, video)
- Chinese study mode with character recognition
- Adaptive game system based on available content
- Content types: vocabulary, grammar, poems, fill-blanks, corrections
- AI-powered text evaluation for open-ended answers
- Flexible content schema with backward compatibility

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 14:25:13 +08:00

115 lines
4.2 KiB
JavaScript

// Basic Chinese content for Chinese Study Mode
const basicChineseContent = {
vocabulary: {
// Basic greetings and common words
"你好": "hello (nǐ hǎo)",
"再见": "goodbye (zài jiàn)",
"谢谢": "thank you (xiè xiè)",
"对不起": "sorry (duì bu qǐ)",
"请": "please (qǐng)",
"是": "yes/to be (shì)",
"不": "no/not (bù)",
"我": "I/me (wǒ)",
"你": "you (nǐ)",
"他": "he/him (tā)",
"她": "she/her (tā)",
// Numbers 1-10
"一": "one (yī)",
"二": "two (èr)",
"三": "three (sān)",
"四": "four (sì)",
"五": "five (wǔ)",
"六": "six (liù)",
"七": "seven (qī)",
"八": "eight (bā)",
"九": "nine (jiǔ)",
"十": "ten (shí)",
// Basic family
"家": "family/home (jiā)",
"爸爸": "father (bà ba)",
"妈妈": "mother (mā ma)",
"儿子": "son (ér zi)",
"女儿": "daughter (nǚ ér)"
},
sentences: [
{
chinese: "你好!",
english: "Hello!",
pinyin: "Nǐ hǎo!"
},
{
chinese: "我是学生。",
english: "I am a student.",
pinyin: "Wǒ shì xué shēng."
},
{
chinese: "谢谢你!",
english: "Thank you!",
pinyin: "Xiè xiè nǐ!"
},
{
chinese: "这是我的家。",
english: "This is my home.",
pinyin: "Zhè shì wǒ de jiā."
}
],
dialogues: [
{
title: "Basic Greeting",
conversation: [
{ speaker: "A", chinese: "你好!", english: "Hello!", pinyin: "Nǐ hǎo!" },
{ speaker: "B", chinese: "你好!你叫什么名字?", english: "Hello! What's your name?", pinyin: "Nǐ hǎo! Nǐ jiào shén me míng zi?" },
{ speaker: "A", chinese: "我叫小明。你呢?", english: "My name is Xiaoming. And you?", pinyin: "Wǒ jiào Xiǎo Míng. Nǐ ne?" },
{ speaker: "B", chinese: "我叫小红。很高兴认识你!", english: "My name is Xiaohong. Nice to meet you!", pinyin: "Wǒ jiào Xiǎo Hóng. Hěn gāo xìng rèn shi nǐ!" }
]
}
],
texts: [
{
title: "Learning Chinese",
content: "Chinese is one of the most spoken languages in the world. It uses characters instead of letters. Each character can represent a word or part of a word. Learning Chinese characters, their pronunciation (pinyin), and meanings is the foundation of studying Chinese.",
chinese: "学习中文是很有趣的。中文使用汉字,不是字母。每个汉字都有意思。"
}
],
culturalNotes: [
{
topic: "Chinese Characters",
note: "Chinese characters are logograms, where each character represents a word or morpheme. There are thousands of characters, but you only need about 2000-3000 to read most modern Chinese texts."
},
{
topic: "Pinyin",
note: "Pinyin is the romanization system used to help learn Chinese pronunciation. It uses the Latin alphabet with tone marks to indicate the four main tones in Mandarin Chinese."
},
{
topic: "Tones",
note: "Mandarin Chinese has four main tones plus a neutral tone. The tone changes the meaning of the word, so it's important to learn them correctly."
}
]
};
// Export for web module system
window.ContentModules = window.ContentModules || {};
window.ContentModules.BasicChinese = {
name: "Basic Chinese",
description: "Essential Chinese characters, pinyin and vocabulary for beginners",
difficulty: "beginner",
vocabulary: basicChineseContent.vocabulary,
sentences: basicChineseContent.sentences,
dialogues: basicChineseContent.dialogues,
texts: basicChineseContent.texts,
culturalNotes: basicChineseContent.culturalNotes,
language: "chinese",
hskLevel: "HSK1"
};
// Node.js export (optional)
if (typeof module !== 'undefined' && module.exports) {
module.exports = basicChineseContent;
}