/stroop

Implementation of the Stroop Test to investigate a person's psychological capacities.

Primary LanguageJavaScriptMIT LicenseMIT

Stroop Test

An implementation of the Stroop Test with difficulty settings and logging capabilities.

General information

From the respective Wikipedia article:

The Stroop effect has been used to investigate a person's psychological capacities; since its discovery during the twentieth century, it has become a popular neuropsychological test. In psychology, the Stroop effect is a demonstration of interference in the reaction time of a task. When the name of a color (e.g., "blue", "green", or "red") is printed in a color which is not denoted by the name (i.e., the word "red" printed in blue ink instead of red ink), naming the color of the word takes longer and is more prone to errors than when the color of the ink matches the name of the color. The effect is named after John Ridley Stroop, who first published the effect in English in 1935.

Installation

download the ZIP file, unzip it, install node, express, and other dependencies specified in the package.json, fire up the express server and navigate to localhost.

For detailed instruction on how to install express, go to https://expressjs.com/

Stroop Tasks Settings

in the UI:

  • number of rounds
  • duration of each round
  • stroop speed

via code parameters

in default.js:

  • COLLECT_DEMOGRAPHICS: optionally, demographic information is collected
  • KEYCODE_YES: sets the match key
  • KEYCODE_NO: sets the mismatch key
  • COLORS: sets the colors and corresponding color codes (currently: 6)
  • SPEEDS: sets the speed selection
  • DURATIONS: sets the selection for the duration of each stroop task

Author

Used libraries and utilities

License

This Stroop Test implementation is published under the MIT license and GPL v3.