Generate CET vocabulary study materials — quizzes, flashcards, study sheets — from bundled word lists. Supports both CET-4 and CET-6.
Word lists are stored as JSON in references/. Each entry contains:
{
"word": "abandon",
"translation": "v. 放弃,遗弃",
"definition": "to leave someone or something permanently",
"example": "They had to abandon the project due to lack of funds."
}
| Script | Purpose |
|---|---|
| -------- | --------- |
generate_quiz.py | Generate quizzes (multiple choice, fill-in, matching) in Markdown or HTML |
generate_flashcards.py | Create printable/spaced-repetition flashcards in Markdown or HTML |
generate_study_sheet.py | Create organized study sheets by frequency, topic, or difficulty |
All scripts accept --level (cet4/cet6/both), --format (markdown/html), --output (file path), and --count (number of words).
HTML output is generated directly by the scripts — no external templates needed. The generated HTML includes:
Users can open the generated HTML files directly in any browser.
Place additional JSON files in references/ following the same format. Pass --wordlist references/my_words.json to any script.
共 1 个版本