Match
The user matches elements from two columns. Requires the content field.
Content Schema
{ "pairs": [ { "left": "Dog", "right": "A loyal pet" }, { "left": "Cat", "right": "A small animal" } ]}Answer Format
answer = JSON.stringify({ left: right })
Request
{ "exerciseId": "ex_005", "area": "vocabulary", "type": "match", "answer": "{\"Dog\":\"A loyal pet\",\"Cat\":\"A small animal\"}", "content": { "pairs": [ { "left": "Dog", "right": "A loyal pet" }, { "left": "Cat", "right": "A small animal" } ] }}Responses
// All correct{ "correct": true, "score": 10, "feedback": "All matches correct!", "metadata": { "area": "vocabulary", "type": "match" } }
// Partial{ "correct": false, "score": 5, "feedback": "You got 1 out of 2 matches correct.", "metadata": { "area": "vocabulary", "type": "match" } }Score = Math.round((correct_pairs / total) * 10)