A Lexical Decision Task (LDT) is a common experiment in psycholinguistics where participants are presented with a mix of real words and non-words (letter strings). The goal is for the participant to quickly and accurately determine if the presented string is a valid word in their language.
The LDT has been central to numerous cognitive psychology studies over the years. For instance:
Over time, various modifications to the standard LDT have emerged. Some popular variants include:
Want to experience the LDT firsthand? Give it a try below:
Curious about how such an experiment is coded? Here's a snippet of the code used for the demo above:
// Initialize the timeline
var timeline = [];
// Instructions
var instructions = {
type: 'html-keyboard-response',
stimulus: '<p>In this task, you will see a series of letter strings.</p>' +
'<p>Your job is to press "W" if the string is a word, and "N" if the string is not a word.</p>' +
'<p>Press any key to begin.</p>',
};
timeline.push(instructions);
// List of stimuli
var stimuli = [
{ stimulus: "table", word: true },
{ stimulus: "chair", word: true },
{ stimulus: "dnfke", word: false },
{ stimulus: "glort", word: false }
// ... add more stimuli here
];
// Define the LDT
var ldt = {
type: 'html-keyboard-response',
stimulus: jsPsych.timelineVariable('stimulus'),
choices: ['w', 'n'],
trial_duration: 1500,
data: {
word: jsPsych.timelineVariable('word')
},
on_finish: function(data){
data.correct = (data.response == 'w' && data.word) || (data.response == 'n' && !data.word);
}
};
// Add the LDT to the timeline with the stimuli
timeline.push({
timeline: [ldt],
timeline_variables: stimuli,
randomize_order: true
});
// Run the experiment
jsPsych.init({
timeline: timeline,
on_finish: function() {
jsPsych.data.displayData();
}
});
The demo above was created using the jsPsych
library—a powerful tool for building behavioral experiments in a web browser. This library provides a flexible framework for designing a wide variety of cognitive tests, making it a favorite among researchers and educators.
What's even more exciting is that this demo is hosted using Cognition. Cognition offers a seamless platform to create, run, and manage online experiments, relieving users of the complexities related to web hosting, data storage, and security.
Inspired by what you've seen? Ready to dive into the world of online experiments? With Cognition, you can run and share your experiments online effortlessly. Whether you're a seasoned researcher or just curious about cognitive tests, Cognition is here to simplify the journey.