-
Notifications
You must be signed in to change notification settings - Fork 3
/
stimuli.js
161 lines (151 loc) · 6.16 KB
/
stimuli.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
// Item types
const PASSIVE = "PASSIVE";
const ACTIVE = "ACTIVE";
const FILLER = "FILLER";
const PRAC = "PRAC";
// experimental, filler and practice items from:
// Caterina Laura Paolazzi, Nino Grillo, Artemis Alexiadou & Andrea Santi (2019)
// Passives are not hard to interpret but hard to remember: evidence from
// online and offline studies, Language, Cognition and Neuroscience,
// 34:8, 991-1015, DOI: 10.1080/23273798.2019.1602733.
// Questions made up by Iris Mulders.
// Lists if you use server side balancing make sure they match the lists
// in the target groups, this is case sensitive.
const LISTS = [
"list1",
"list2"
// "list3"
];
const PRACTICE_ITEMS = [
{
id : 1,
item_type : PRAC,
stimulus : // Single "/" delimit boundaries between words presented
// together. Boundaries must be activated by setting "/" as
// GROUPING_STRING in globals.js. The default is null
// which means every word is a group of in its own.
// If the grouping string isn't set or null,
// the "/" will be displayed instead of used for grouping.
"The teacher took the car instead of the express" + // The '+' adds strings together or concatenates them.
"train \ndue to the previously announced public\n" + // A "\n" makes the string jump to the next line.
"transport strike.\n", // use a comma here.
question : "", // An empty string means no question for this trial.
qanswer : undefined // We can't define a answer if there ain't no question.
},
{
id : 2,
item_type : PRAC,
stimulus :
"The researcher presented his most recent work\n" +
"to the commission and obtained very positive\n" +
"comments regarding the experimental design.\n" ,
question : "The researcher presented old work.",
qanswer : FALSE_BUTTON_TEXT // Use TRUE_BUTTON_TEXT if the answer is true,
// FALSE_BUTTON_TEXT otherwise
}
];
/*
* In this list there is a stimulus, if a word or group of words starts with a
* '#' it's reaction time will be recorded. So don't put any '#" elsewhere...
*/
const LIST_GROUP1 = [
{
id : 1,
item_type : PASSIVE,
stimulus :
"The guitarist was rejected by #the #attractive #and\n" +
"#talented #singer #in #the #concert #hall #next #to\n" +
"#the #Irish #pub.\n" ,
question : "The singer was attractive.",
qanswer : TRUE_BUTTON_TEXT
},
{
id : 2,
item_type : ACTIVE,
stimulus :
"The sculptor mugged #the #strange #and\n" +
"#temperamental #photographer #in #the #art #gallery\n" +
"#next #to #the #book #shop.\n" ,
question : "",
qanswer : undefined
},
{
id : 3,
item_type : FILLER,
stimulus :
"The beautiful princess married her young and\n" +
"handsome chauffeur and shocked the royal\n" +
"family and the press.\n" ,
question : "The chauffeur was an old man.",
qanswer : FALSE_BUTTON_TEXT
},
{
id : 4,
item_type : FILLER,
stimulus :
"The little girl did not play with her brother\n" +
"in the colourful playground next to their weedy\n" +
"garden.\n" ,
question : "",
qanswer : undefined
}
];
/*
* In this list there is a stimulus, if a word starts with a '#' its
* reaction time will be recorded. So don't put any '#" elsewhere...
*/
const LIST_GROUP2 = [
{
id : 1,
item_type : ACTIVE,
stimulus :
"The guitarist rejected #the #attractive #and\n" +
"#talented #singer #in #the #concert #hall #next #to\n" +
"#the #Irish #pub.\n" ,
question : "The singer was attractive.",
qanswer : TRUE_BUTTON_TEXT
},
{
id : 2,
item_type : PASSIVE,
stimulus :
"The sculptor was mugged by #the #strange #and\n" +
"#temperamental #photographer #in #the #art #gallery\n" +
"#next #to #the #book #shop.\n" ,
question : "",
qanswer : undefined
},
{
id : 3,
item_type : FILLER,
stimulus :
"The beautiful princess married her young and\n" +
"handsome chauffeur and shocked the royal\n" +
"family and the press.\n" ,
question : "The chauffeur was an old man.",
qanswer : FALSE_BUTTON_TEXT
},
{
id : 4,
item_type : FILLER,
stimulus :
"The little girl did not play with her brother\n" +
"in the colourful playground next to their weedy\n" +
"garden.\n" ,
question : "",
qanswer : undefined
}
];
// Add a third list of stimuli when required.
// const LIST_GROUP3 = [
// ...
// ]
// These lists are not a between subjects variable, but
// define which list a participant gets.
const TEST_ITEMS = [
{list_name: LISTS[0], table: LIST_GROUP1},
{list_name: LISTS[1], table: LIST_GROUP2}
// Add a third list here, put a comma on the
// end of the line above here.
// {list_name: LISTS[1], table: LIST_GROUP3}
];