// Numbas version: exam_results_page_options {"name": "The \"Random person\" extension", "extensions": ["random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "preventleave": false, "showfrontpage": false}, "question_groups": [{"questions": [{"parts": [], "extensions": ["random_person"], "statement": "

The \"random person\" extension can produce random people, weighted by popularity of names in England and Wales between 1996 and 2015.

\n

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

\n

{person['name']} puts {person['pronouns']['their']} things where {person['pronouns']['they']} like{if(person['gender']='neutral','','s')}.

\n

When people show things to {person['pronouns']['them']}, {person['pronouns']['they']} want{if(person['gender']='neutral','','s')} them for {person['pronouns']['themself']}.

\n
\n

It can be more convenient, if you've only got one person, to set variables for the pronouns.

\n

{name} put{s} {their} things where {they} like{s}.

\n

When people show things to {them}, {they} want{s} them for {themself}.

\n
\n

Some random people.

\n

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

\n
\n

Some random gender-neutral names.

\n

{neutrals}

\n
\n

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

\n

{people[0]['name']} gave {people[0]['pronouns']['their']} book to {people[1]['name']}, which {people[1]['pronouns']['they']} liked.

", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "functions": {}, "name": "The \"Random person\" extension", "advice": "", "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["people", "neutrals", "woman"], "variables": {"theirs": {"group": "A person", "name": "theirs", "templateType": "anything", "description": "", "definition": "person['pronouns']['theirs']"}, "person": {"group": "A person", "name": "person", "templateType": "anything", "description": "

A random person

", "definition": "random_person()"}, "they": {"group": "A person", "name": "they", "templateType": "anything", "description": "", "definition": "person['pronouns']['they']"}, "woman": {"group": "Ungrouped variables", "name": "woman", "templateType": "anything", "description": "

A random female

", "definition": "random_person_with_gender('female')"}, "name": {"group": "A person", "name": "name", "templateType": "anything", "description": "

The random person's name.

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

Is the person gender-neutral?

", "definition": "person['gender']='neutral'"}, "their": {"group": "A person", "name": "their", "templateType": "anything", "description": "", "definition": "person['pronouns']['their']"}, "people": {"group": "Ungrouped variables", "name": "people", "templateType": "anything", "description": "

Some random people

", "definition": "random_people(30)"}, "s": {"group": "A person", "name": "s", "templateType": "anything", "description": "", "definition": "if(neutral,'','s')"}, "neutrals": {"group": "Ungrouped variables", "name": "neutrals", "templateType": "anything", "description": "

Some random gender-neutral people

", "definition": "join(map(x['name'],x,random_people_with_gender('neutral',3)),', ')"}}, "variable_groups": [{"name": "A person", "variables": ["person", "neutral", "name", "they", "their", "theirs", "them", "themself", "s"]}], "tags": [], "rulesets": {}, "type": "question", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Shows how to use the \"random person\" extension to pick random names for people in your questions.

"}, "preamble": {"js": "", "css": ""}}], "pickingStrategy": "all-ordered"}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}