// Numbas version: finer_feedback_settings {"name": "sentence reorder 2", "extensions": ["sentence-reorder"], "custom_part_types": [{"source": {"pk": 295, "author": {"name": "Joss Joss", "pk": 258}, "edit_page": "/part_type/295/edit"}, "name": "scholar sentence reorder", "short_name": "scholar-sentence-reorder", "description": "

Thbis part will move drag items to the available space

", "help_url": "", "input_widget": "SentenceReorder", "input_options": {"correctAnswer": "settings['how_many_drags']", "hint": {"static": true, "value": "Select the words in order."}, "target_height": {"static": false, "value": "settings['target_height']"}, "target_text": {"static": false, "value": "settings['target_text']"}, "how_many_drags": {"static": false, "value": "settings['how_many_drags']"}, "distractors": {"static": false, "value": "settings['distractors']"}, "all_or_nothing": {"static": false, "value": "settings['all_or_nothing']"}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(interpreted_answer = 0, incorrect(\"You have not found any matches. Try again?\"),\nif(interpreted_answer < input_options[\"how_many_drags\"],if (input_options['all_or_nothing'],incorrect(\"You must find all matches to get the marks\") , apply(partialFeedback)),correct(\"Well done you matched them all.\"));end())\n\ninterpreted_answer:\nstudentAnswer\n\npartialFeedback:\nset_credit((interpreted_answer/input_options['how_many_drags']) , \"You found some but not all of the pairs\"); end()\n\nmarkPerGap:\n1/input_options[\"how_many_drags\"]", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(interpreted_answer = 0, incorrect(\"You have not found any matches. Try again?\"),\nif(interpreted_answer < input_options[\"how_many_drags\"],if (input_options['all_or_nothing'],incorrect(\"You must find all matches to get the marks\") , apply(partialFeedback)),correct(\"Well done you matched them all.\"));end())"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer"}, {"name": "partialFeedback", "description": "", "definition": "set_credit((interpreted_answer/input_options['how_many_drags']) , \"You found some but not all of the pairs\"); end()"}, {"name": "markPerGap", "description": "", "definition": "1/input_options[\"how_many_drags\"]"}], "settings": [{"name": "target_text", "label": "The sentence in the correct order", "help_url": "", "hint": "This should be a complete sentence in the correct order. You can repeat words but should try to form a sentence that has one clear logical order. you can not omit some words or punctuation from the markup and this will form islands", "input_type": "html", "default_value": "

A %[complete]% %[sentence or paragraph]% %[in]% %[grammatical}% order. 

", "subvars": true}, {"name": "how_many_drags", "label": "How many tokens is the sentnce made up of", "help_url": "", "hint": "This is either the number of words in your sentence or teh number of blocks it is broken up into. Unfortunaltey it is not possible to deduce this programmatically", "input_type": "code", "default_value": "6", "evaluate": true}, {"name": "distractors", "label": "Additional distractors", "help_url": "", "hint": "These are additional distractors which can be added. These drags have no 'match'. It is harder to use html here unfortunately.", "input_type": "list_of_strings", "default_value": [], "subvars": false}, {"name": "target_height", "label": "Height", "help_url": "", "hint": "do not leave blank", "input_type": "string", "default_value": "35", "subvars": false}, {"name": "all_or_nothing", "label": "Award marks only for all correct", "help_url": "", "hint": "", "input_type": "checkbox", "default_value": false}], "public_availability": "restricted", "published": false, "extensions": ["sentence-reorder"]}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "sentence reorder 2", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "extensions": ["sentence-reorder"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "scholar-sentence-reorder", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"target_text": "

%[When]%%[you]%%[put]% these %[words]% in order, they will make a %[complete]% %[sentence]%.

", "how_many_drags": "6", "distractors": ["dove", "outside"], "target_height": "30", "all_or_nothing": false}}, {"type": "scholar-sentence-reorder", "useCustomName": false, "customName": "", "marks": "19", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Put the words of the first few lines of Blue Moon in the correct order:

", "settings": {"target_text": "

%[Blue ]% %[Moon]%
%[You]%%[saw]%%[me]%%[standing]%%[alone]%
%[Without]%%[a]%%[dream]%%[in]%%[my]%%[heart]%
%[Without]%%[a]%%[love]%%[of]%%[my]%%[own]%

", "how_many_drags": "19", "distractors": ["dove", "outside"], "target_height": "30", "all_or_nothing": false}}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Joss Joss", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/258/"}], "resources": []}]}], "contributors": [{"name": "Joss Joss", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/258/"}]}