Generate a batch of exercises for a Danish grammar topic
Generate a batch of exercises for a Danish grammar topic or vocabulary set, following DanskPrep's exercise type specifications and quality standards.
Reference: Read
.claude/references/danish-content.mdfirst — it covers grammatical accuracy rules, exam scope, and exercise quality standards.
The user will specify a grammar topic or vocabulary list. Follow these steps:
Identify scope — Ask for (or infer from context):
Generate exercises in this JSON format matching the exercises table schema:
{
"exercise_type": "cloze",
"question": "Han ___ (spise) morgenmad hver dag.",
"correct_answer": "spiser",
"alternatives": null,
"hint": "present tense of spise",
"explanation": "In main clauses, the verb takes present tense ending -er: spiser.",
"module_level": 2,
"difficulty": 1
}
Exercise type rules:
type_answer: Danish prompt → user types English (or vice versa). Single word or short phrase.cloze: Sentence with one ___ blank. Include verb in parentheses for conjugation cloze, or leave bare for word choice cloze.multiple_choice: Include exactly 3 plausible alternatives (wrong answers). Distractors must be grammatically similar to the correct answer.word_order: question is a scrambled list of words separated by /. correct_answer is the correct sentence.error_correction: question contains a sentence with one grammatical error. correct_answer is the fixed sentence.Content standards:
error_correction type.explanation that teaches the rule, not just states the answer.Output a JSON array ready to insert into src/data/seed/exercises-module2.json. After generating, ask if the user wants to run the seed script or review individual items.