Cloze question

Schema

Examples

Simple input

{
  "id": "1",
  "type": "application/x.cloze+json",
  "content": "Question ?",
  "text": "Lorem ipsum [[1]] sit amet."
}

Hole attributes

{
  "id": "1",
  "type": "application/x.cloze+json",
  "content": "Question ?",
  "text": "Lorem [[1]] dolor sit [[2]].",
  "holes": [
    {
      "id": "1",
      "size": 20
    },
    {
      "id": "2",
      "size": 14,
      "placeholder": "(verb)"
    }
  ]
}

Hole choices

{
  "id": "1",
  "type": "application/x.cloze+json",
  "content": "Question ?",
  "text": "Lorem [[1]] dolor sit [[2]].",
  "holes": [
    {
      "id": "1",
      "choices": ["foo", "ipsum", "bar"]
    },
    {
      "id": "2",
      "size": 10
    }
  ]
}

Single answer

{
  "id": "1",
  "type": "application/x.cloze+json",
  "content": "Question ?",
  "text": "Lorem ipsum [[1]] sit amet.",
  "solutions": [
    {
      "holeId": "1",
      "answers": [
        {
          "text": "dolor",
          "caseSensitive": false,
          "score": 2
        }
      ]
    }
  ]
}

Multiple answers

{
  "id": "1",
  "type": "application/x.cloze+json",
  "content": "Question ?",
  "text": "Lorem [[1]] dolor sit [[2]].",
  "holes": [
    {
      "id": "1",
      "choices": ["foo", "ipsum", "bar"]
    },
    {
      "id": "2",
      "size": 10
    }
  ],
  "solutions": [
    {
      "holeId": "1",
      "answers": [
        {
          "text": "ipsum",
          "caseSensitive": false,
          "score": 1.5
        }
      ]
    },
    {
      "holeId": "2",
      "answers": [
        {
          "text": "amet",
          "caseSensitive": false,
          "score": 1.5
        },
        {
          "text": "consecitur",
          "caseSensitive": false,
          "score": 2
        },
        {
          "text": "nunc",
          "caseSensitive": false,
          "score": 0.5
        }
      ]
    }
  ]
}