Class TextGap is responsible for creating instances of input
fields with text type of answers in question Entry type assessment tasks
according to the QTI 2.1 standard.
Slots
response_identifierA character value representing an identifier for the answer. By default, it is generated as 'id_gap_dddd', where dddd represents random digits.
pointsA numeric value, optional, representing the number of points for this gap. Default is
1.placeholderA character value, optional, responsible for placing helpful text in the text input field in the content delivery engine.
expected_lengthA numeric value, optional, responsible for setting the size of the text input field in the content delivery engine.
solutionA character vector containing the values considered as correct answers.
case_sensitiveA boolean value, determining whether the evaluation of the correct answer is case sensitive. Default is
FALSE.
See also
Entry, NumericGap, TextGapOpal and InlineChoice.
Examples
tg <- new("TextGap",
response_identifier = "id_gap_1234",
points = 2,
placeholder = "do not put special characters",
expected_length = 20,
solution = c("answer", "answerr", "aanswer"),
case_sensitive = FALSE)