Created a prototype for one exercise of the reading module

This commit is contained in:
Tiago Ribeiro
2023-03-21 17:09:35 +00:00
parent be7665fab8
commit 740346f696
8 changed files with 414 additions and 4 deletions

23
src/interfaces/exam.ts Normal file
View File

@@ -0,0 +1,23 @@
export type Type = "fillBlanks" | "matchingSentences";
export interface ReadingExam {
text: {
title: string;
content: string;
};
exercises: Exercise[];
}
type Exercise = FillBlanksExercise;
export interface FillBlanksExercise {
prompt: string; // *EXAMPLE: "Complete the summary below. Click a blank to select the corresponding word for it."
type: "fillBlanks";
words: string[]; // *EXAMPLE: ["preserve", "unaware"]
text: string; // *EXAMPLE: "They tried to {{1}} burning"
allowRepetition: boolean;
solutions: {
id: string; // *EXAMPLE: "1"
solution: string; // *EXAMPLE: "preserve"
}[];
}