Color Word Stroop - Keyboard

Technical Manual

Last Modified: August 05, 2026 by K. Borchert (katjab@millisecond.com), Millisecond

Script Copyright © Millisecond Software, LLC

Background

This script implements a version of the classic Stroop Task with keyboard input. The classic Stroop paradigm demonstrates the interference of word meaning on the naming of the color in which the words are written as measured by reaction time/accuracy differences to color-meaning congruent and color-meaning incongruent combinations.

References

Stroop, J, R. (1935). Studies of interference in serial verbal reactions. Journal of Experimental Psychology, 18, 643-662.

Lisas Scores:
Vandierendonck A. On the Utility of Integrated Speed-Accuracy Measures when Speed-Accuracy Trade-off is Present. J Cogn. 2021 Mar 18;4(1):22. doi: 10.5334/joc.154. Erratum in: J Cogn. 2021 Nov 10;4(1):59. doi: 10.5334/joc.192. PMID: 33778368; PMCID: PMC7977027.

Duration

2 minutes

Description

Participants are given color words written in color and are asked to indicate the color of the word (not its meaning) by key press as fast as they can without making too many errors. Congruent trials: color word and the color it is presented in are the same Incongruent trials: color word and the color it is presented in are not the same Control trials: colored rectangles

Procedure

1 Testblock With:
• 4 colors (red, green, blue, black) x 3 color-stim congruency (congruent, incongruent, control) x 7 repetitions = 84 trials
• trials are randomly sampled

Trial Timing:
- stimuli stay on screen until response (latencies are measured from onset of stimuli)
- intertrial interval of 200ms
- error feedback of 400ms

Stimuli

congruent/incongruent: color words
control: rectangle shapes

see "stroopwithcontrolkeyboard_instructions_inc.iqjs"

Instructions

Instructions are not original to the task. They are provided by Millisecond.
See "stroopwithcontrolkeyboard_instructions_inc.iqjs"

Scoring

Linear Integrated Speed-Accuracy Scores (Lisas): (Vandierendonck, 2021)
A LISAS score is simply the weighted sums of the RT and PE measures, with weights being calculated as the ratio of
the (correct) response time standard deviation to the error rate standard deviation.
LISAS output is expressed in units of time. It represents an individual's "error-corrected processing speed".

LISAS = meanRT(of correct responses) + (sdRT/sdErrors) * propErrors

=> A low LISAS means the participant was both fast and accurate; the minimum LISAS that can be assigned to a participants
equals their mean correct response time (this happens with error rates = 0);
=> A high LISAS means the participant struggled with accuracy or had to drastically slow down to maintain accuracy

in this script sdRT and sdErrors are based on the pooled standard deviation of all test trials
(congruent + incongruent + ctrl)

Summary Data

File Name: stroopwithcontrolkeyboard_summary*.iqdat

Data Fields

NameDescription
startDate Date the session was run
startTime Time the session was run
subjectId Participant ID
groupId Group number
sessionId Session number
elapsedTime Session duration in ms
inquisit.version Inquisit version number
computer.platform Device platform: win | mac |ios | android
computer.touch 0 = device has no touchscreen capabilities; 1 = device has touchscreen capabilities
computer.hasKeyboard 0 = no external keyboard detected; 1 = external keyboard detected
completed 0 = Test was not completed
1 = Test was completed
propCorrect Overall proportion correct of all trials
meanRT Overall mean latency (in ms) of all correct trials
propCorrectCongruent Proportion correct of congruent trials
propCorrectIncongruent Proportion correct of all incongruent trials
propCorrectControl Proportion correct of all control trials
meanRTCorrCongruent Mean latency of all correct congruent trials (in ms)
meanRTCorrIncongruent Mean latency of all correct incongruent trials (in ms)
meanRTCorrControl Mean latency of all correct control trials (in ms)
Speed-Accuracy Trade Off: Linear Integrated Speed-Accuracy Score, Lisas ("Error-Corrected Processing Speed")
lisasC LISAS score for congruent trials
lisasI LISAS score for incongruent trial performance
lisasCtrl LISAS score for control trial performance
sdRT Pooled standard deviation of correct responses (across all test trials)
sdError Pooled error standard deviation (across all test trials)
Stroop Effects
stroopAccuracy Difference in proportion corrects for (Congruent-Incongruent)
=> positive difference: participants were more accurate categorizing congruent stims than incongruent ones
stroopLatency Difference in meanCorrRT for (Incongruent - Congruent)
=> positive difference: participants were on average faster correctly categorizing congruent stims than incongruent ones
stroopInhibitionAccuracy Difference in proportion corrects for (Control - Incongruent)
=> positive difference: participants were more accurate categorizing control stims than incongruent ones
(this performance difference ~ cost of inhibiting the dominant response)
stroopInhibitionLatency Difference in meanCorrRT for (Incongruent - Control)
=> positive difference: participants were on average faster correctly categorizing control stims than incongruent ones
(this latency difference ~ cost of inhibiting the dominant response)
stroopLISAS Difference in LISAS scores ("error-corrected processing speed") from Incongruent and Congruent Trials
=> positive difference, "error-corrected processing speed" was faster for congruent than for incongruent ones
=> the participant experienced cognitive interference from the conflicting information in incongruent trials
=> a positive difference supports that processing incongruent trials required more cognitive effort, time, or
accuracy sacrifices than processing congruent trials

Raw Data

File Name: stroopwithcontrolkeyboard_raw*.iqdat

Data Fields

NameDescription
date Date the session was run
time Time the session was run
subject Participant ID
group Group number
session Session number
build Inquisit version number
computer.platform Device platform: win | mac |ios | android
computer.touch 0 = device has no touchscreen capabilities; 1 = device has touchscreen capabilities
computer.hasKeyboard 0 = no external keyboard detected; 1 = external keyboard detected
blockcode The name the current block (built-in Inquisit variable)
blocknum The number of the current block (built-in Inquisit variable)
trialcode The name of the currently recorded trial (built-in Inquisit variable)
trialnum The number of the currently recorded trial (built-in Inquisit variable)
trialnum is a built-in Inquisit variable; it counts all trials run
even those that do not store data to the data file.
congruency 1 = congruent (color of word and meaning of word are the same)
2 = incongruent (color of word and meaning of word are different)
3 = control (rectangles)
stimulusItem The presented words
response The participant's response (scancode of response button)
32 = D (red)
33 = F (green)
36 = J (blue)
37 = K (black)
responseText The label of the response key
responseCategory The interpreted key response
"red"
"green"
"blue"
"green"
correct The correctness of the response (1 = correct; 0 = incorrect)
latency The response latency (in ms); measured from onset of word
congruentCorrect Number of correct congruent responses
incongruentCorrect Number of correct incongruent responses

Parameters

The procedure can be adjusted by setting the following parameters.

NameDescriptionDefault
Response Keys: On Qwerty Keyboards They Are Adjacent Keys
keyRed The red response button"D"
keyGreen The green response button"F"
keyBlue The blue response button"J"
keyBlack The black response button"K"