function createDefinition(markTheWords) {
    var definition = {};
    definition.description = {
      'en-US': replaceLineBreaks(markTheWords.params.taskDescription)
    };
    definition.type = 'http://adlnet.gov/expapi/activities/cmi.interaction';
    definition.interactionType = 'choice';
    definition.correctResponsesPattern = [getCorrectResponsesPattern(markTheWords)];
    definition.choices = getChoices(markTheWords);
    definition.extensions = {
      'https://h5p.org/x-api/line-breaks': markTheWords.getIndexesOfLineBreaks()
    };
    return definition;
  }
/**
   * Create object definition for question
   *
   * @param {H5P.MarkTheWords} markTheWords
   * @return {Object} Object definition
   */
Create object definition for question
@param {H5P.MarkTheWords} markTheWords
@return {Object} Object definition
Create object definition for question @param { H5P . MarkTheWords } markTheWords @return { Object } Object definition
function createDefinition(markTheWords) {
    var definition = {};
    definition.description = {
      'en-US': replaceLineBreaks(markTheWords.params.taskDescription)
    };
    definition.type = 'http://adlnet.gov/expapi/activities/cmi.interaction';
    definition.interactionType = 'choice';
    definition.correctResponsesPattern = [getCorrectResponsesPattern(markTheWords)];
    definition.choices = getChoices(markTheWords);
    definition.extensions = {
      'https://h5p.org/x-api/line-breaks': markTheWords.getIndexesOfLineBreaks()
    };
    return definition;
  }
function createDefinition ( markTheWords ) { var definition = { } ; definition . description = { 'en-US' : replaceLineBreaks ( markTheWords . params . taskDescription ) } ; definition . type = 'http://adlnet.gov/expapi/activities/cmi.interaction' ; definition . interactionType = 'choice' ; definition . correctResponsesPattern = [ getCorrectResponsesPattern ( markTheWords ) ] ; definition . choices = getChoices ( markTheWords ) ; definition . extensions = { 'https://h5p.org/x-api/line-breaks' : markTheWords . getIndexesOfLineBreaks ( ) } ; return definition ; }
Create object definition for question
 @param {H5P.MarkTheWords} markTheWords
 @return {Object} Object definition
Create object definition for question @param { H5P . MarkTheWords } markTheWords @return { Object } Object definition