A standard lexical decision task: participants decide as quickly as possible whether a string of letters is a real word or a non-word (pronounceable but meaningless letter string). Stimuli are read from a CSV file.
Fixation cross → Letter string → Response → ITI
500 ms until response key press 500 ms
| Key | Meaning |
|---|---|
F |
Word |
J |
Non-word |
Create a CSV file with two columns (no header):
item,category
table,word
flurp,nonword
chair,word
...
Place the file in the same directory as main.go or pass its path on the command line.
sudo apt install libsdl3-dev on Ubuntu/Debian)# Fullscreen, participant 1
go run main.go -s 1
# Windowed (development / testing)
go run main.go -s 1 -d
| Flag | Default | Description |
|---|---|---|
-s |
0 |
Participant ID (integer) |
-d |
off | Development mode: windowed 1024×768 |
Data are saved to goxpy_data/ as a .xpd file (CSV with a metadata header). One row per trial:
| Column | Description |
|---|---|
item |
The letter string shown |
category |
word or nonword (from input CSV) |
key |
Key pressed |
rt |
Reaction time in milliseconds |