feat(bisaya): update sentence-chain prompt for clarity in grammar exercises
Some checks failed
Deploy to production / deploy (push) Failing after 54s

This commit is contained in:
Torsten Schulz (local)
2026-09-28 15:57:58 +02:00
parent caabff5f5e
commit 314bf2ca3b
2 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
'use strict';
/**
* The automatic sentence-chain generator used one fixed directions-question
* prompt for every multi-part cue. It therefore contradicted the word cards
* in unrelated lessons such as "Spielen & Freizeit".
*/
module.exports = {
async up(queryInterface) {
await queryInterface.sequelize.query(`
UPDATE community.vocab_grammar_exercise
SET question_data = jsonb_set(
question_data,
'{question}',
'"Ordne die Wortkarten zu den kurzen Formulierungen aus der Aufgabe."'::jsonb
)
WHERE question_data->>'type' = 'sentence_building'
AND question_data->>'question' = 'Ordne die Wortkarten als drei Fragen: Wohin geht die Person? Wann geht sie los? Mit wem ist sie unterwegs?';
`);
},
async down() {
// The previous prompt was incorrect and must not be restored.
}
};

View File

@@ -688,7 +688,7 @@ function buildTaskSentenceExercise(lesson, didactics, pattern) {
questionData: {
...sentenceExercise.questionData,
question: sentenceTarget === scenarioCue
? 'Ordne die Wortkarten als drei Fragen: Wohin geht die Person? Wann geht sie los? Mit wem ist sie unterwegs?'
? 'Ordne die Wortkarten zu den kurzen Formulierungen aus der Aufgabe.'
: sentenceExercise.questionData.question
},
instruction: practicalTask?.text