// Numbas version: finer_feedback_settings {"name": "Random French people", "extensions": ["random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Random French people", "tags": [], "metadata": {"description": "

Shows how to use the \"random person\" extension to pick random names using the built-in French data set.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

The following sentence stars a random person. Note that the verbs are conjugated differently following gender-neutral pronouns.

\n

{name} met ses choses où {il} veut.

\n

Quand des gens lui montrent des choses, {il} les veut pour {lui}-même.

\n
\n

Some random people.

\n

{join(map(x['name']+' ('+x['pronouns']['il']+')',x,people),', ')}

\n
\n

Two random people with different names, so you can differentiate them.

\n

{people[0]['name']} a donné{ee} à {people[1]['name']} le livre qu'{people[1]['pronouns']['il']} voulait.

", "advice": "", "rulesets": {}, "extensions": ["random_person"], "variables": {"person": {"name": "person", "group": "A person", "definition": "random_person()", "description": "

A random person

", "templateType": "anything"}, "name": {"name": "name", "group": "A person", "definition": "person['name']", "description": "

The random person's name.

", "templateType": "anything"}, "people": {"name": "people", "group": "Ungrouped variables", "definition": "random_people(30)", "description": "

Some random people

", "templateType": "anything"}, "ee": {"name": "ee", "group": "Ungrouped variables", "definition": "if(people[0]['gender']='female','e','')", "description": "", "templateType": "anything"}, "il": {"name": "il", "group": "A person", "definition": "person['pronouns']['il']", "description": "", "templateType": "anything"}, "lui": {"name": "lui", "group": "A person", "definition": "person['pronouns']['lui']", "description": "", "templateType": "anything"}, "le": {"name": "le", "group": "A person", "definition": "person['pronouns']['le']", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["people", "ee"], "variable_groups": [{"name": "A person", "variables": ["person", "name", "il", "lui", "le"]}], "functions": {}, "preamble": {"js": "var random_person = Numbas.extensions.random_person;\nrandom_person.data = random_person.datasets.fr;\nrandom_person.pronouns = {\n male: {'il': 'il', 'lui': 'lui', 'le': 'le'},\n female: {'il': 'elle', 'lui': 'elle', 'le': 'la'}\n}", "css": ""}, "parts": [], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}