DRM Experiment
Jaap MurreIf you are a registered user and signed in, you can here copy this script and its stimuli to your own account, where you can edit it and change it in any way you want.
It is absolutely free to register (no credit card info asked!). You can then instantly copy this experiment with one click and edit it, change its accompanying texts, its landing page, stimuli, etc. Invite your colleagues, friends, or students to check out your experiment. There is no limit on how many people can do your experiment, even with a free account.
The catch? There is no catch! Just keep in mind that with a free account, you cannot collect data. For teaching that is usually not a problem. For research, prepaid data collection (unlimited subjects) starts as low as €10.00 for a 10-day period.
var critical_lure = getwords('critical_lure.txt');
var targets = getwords('targets.txt');
var lures = getwords('lures.txt');
var i;
var e;
lured = false;
var correct = 0;
var false_alarm = 0;
text("Look at the following words");
await(4000);
clear();
await(1500);
for (i = 0; i < targets.length; i++) {
text(targets[i]);
await(1500);
text('');
await(1000);
}
var all = targets.concat(lures);
all.push(critical_lure);
all = shuffle(all);
input("Add the following numbers: 47, 39, 23, 85, 17","addition"); // short distractor task
text("For each word, type the S-key for 'Seen' (Old), the L-key for 'Later Added' (New)");
await(4000);
clear();
var b = addblock(0,90,100,10);
b.style("font-size","70%");
b.text("Type S for 'Seen (Old)', L for 'Later Added (New)'");
await(4000)
for (i = 0; i < all.length; i++) {
text(all[i]);
e = awaitkey('s,l');
if (e.key === 's') {
if (targets.includes(all[i])) {
log(1,all[i]); // Correct trial
++correct;
} else {
++false_alarm;
log(0,all[i]); // Incorrect trial
}
if (all[i] === critical_lure) {
lured = true;
log(1,"lured")
}
}
}
log(correct,"correct_trials");
log(false_alarm,"false_alarms");
clear();
await(2000);
if (lured) {
text('You fell for the illusion: sleep was not shown earlier, only related words');
} else {
text('You did not fall for the illusion');
}
await(4000);
await(1000);
text("Thank you for participating!");