From bf2b4907313f1fa87fc2e8af10badb9d1724d23c Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Thu, 5 Mar 2026 13:23:56 +0100 Subject: [PATCH] Add Bisaya course content for 'Haus & Familie' lesson: Introduce multiple-choice and gap-fill exercises for vocabulary related to house and family terms, including translations and explanations. Update lesson tracking to include the new lesson in the course content. --- .../scripts/create-bisaya-course-content.js | 87 ++++++++++++++++++- 1 file changed, 86 insertions(+), 1 deletion(-) diff --git a/backend/scripts/create-bisaya-course-content.js b/backend/scripts/create-bisaya-course-content.js index 9cf418a..4389da3 100644 --- a/backend/scripts/create-bisaya-course-content.js +++ b/backend/scripts/create-bisaya-course-content.js @@ -191,6 +191,90 @@ const BISAYA_EXERCISES = { } ], + // Lektion: Haus & Familie (Balay, Kwarto, Kusina, Pamilya) + 'Haus & Familie': [ + { + exerciseTypeId: 2, // multiple_choice + title: 'Wie sagt man "Haus" auf Bisaya?', + instruction: 'Wähle die richtige Übersetzung.', + questionData: { + type: 'multiple_choice', + question: 'Wie sagt man "Haus" auf Bisaya?', + options: ['Balay', 'Kwarto', 'Kusina', 'Pamilya'] + }, + answerData: { type: 'multiple_choice', correctAnswer: 0 }, + explanation: '"Balay" bedeutet "Haus" auf Bisaya.' + }, + { + exerciseTypeId: 2, // multiple_choice + title: 'Wie sagt man "Zimmer" auf Bisaya?', + instruction: 'Wähle die richtige Übersetzung.', + questionData: { + type: 'multiple_choice', + question: 'Wie sagt man "Zimmer" auf Bisaya?', + options: ['Kwarto', 'Balay', 'Kusina', 'Pamilya'] + }, + answerData: { type: 'multiple_choice', correctAnswer: 0 }, + explanation: '"Kwarto" bedeutet "Zimmer" (Raum/Schlafzimmer).' + }, + { + exerciseTypeId: 2, // multiple_choice + title: 'Wie sagt man "Küche" auf Bisaya?', + instruction: 'Wähle die richtige Übersetzung.', + questionData: { + type: 'multiple_choice', + question: 'Wie sagt man "Küche" auf Bisaya?', + options: ['Kusina', 'Balay', 'Kwarto', 'Pamilya'] + }, + answerData: { type: 'multiple_choice', correctAnswer: 0 }, + explanation: '"Kusina" bedeutet "Küche".' + }, + { + exerciseTypeId: 2, // multiple_choice + title: 'Wie sagt man "Familie" auf Bisaya?', + instruction: 'Wähle die richtige Übersetzung.', + questionData: { + type: 'multiple_choice', + question: 'Wie sagt man "Familie" auf Bisaya?', + options: ['Pamilya', 'Balay', 'Kwarto', 'Kusina'] + }, + answerData: { type: 'multiple_choice', correctAnswer: 0 }, + explanation: '"Pamilya" bedeutet "Familie".' + }, + { + exerciseTypeId: 1, // gap_fill + title: 'Haus & Räume vervollständigen', + instruction: 'Fülle die Lücken mit den richtigen Bisaya-Wörtern.', + questionData: { + type: 'gap_fill', + text: '{gap} (Haus) | {gap} (Zimmer) | {gap} (Küche) | {gap} (Familie)', + gaps: 4 + }, + answerData: { + type: 'gap_fill', + answers: ['Balay', 'Kwarto', 'Kusina', 'Pamilya'] + }, + explanation: 'Balay = Haus, Kwarto = Zimmer, Kusina = Küche, Pamilya = Familie.' + }, + { + exerciseTypeId: 4, // transformation + title: 'Haus-Satz übersetzen', + instruction: 'Übersetze den Satz ins Bisaya.', + questionData: { + type: 'transformation', + text: 'Unser Haus hat zwei Zimmer', + sourceLanguage: 'Deutsch', + targetLanguage: 'Bisaya' + }, + answerData: { + type: 'transformation', + correct: 'Ang among balay kay naay duha ka kwarto', + alternatives: ['Among balay naay duha ka kwarto', 'Ang among balay adunay duha ka kwarto'] + }, + explanation: '"Balay" = Haus, "kwarto" = Zimmer, "duha ka" = zwei (Stück).' + } + ], + // Lektion 15: Zeitformen - Grundlagen 'Zeitformen - Grundlagen': [ { @@ -971,7 +1055,8 @@ async function createBisayaCourseContent() { const replacePlaceholders = [ 'Woche 1 - Wiederholung', 'Woche 1 - Vokabeltest', - 'Alltagsgespräche - Teil 1' + 'Alltagsgespräche - Teil 1', + 'Haus & Familie' ].includes(lesson.title); const existingCount = await VocabGrammarExercise.count({ where: { lessonId: lesson.id }