/FunWithFlags

User model's app for Fun with Flags

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

jsrl - FUN WITH FLAGS

Javascript implementation of RUGged Learning for studying the names of flags, including the implementation of continuous correctness scores and extensive, color-based feedback.

Here follows a short description of the most important files:

JSRL css This folder contains all styling and layout scripts data In this folder, participant data will be stored in .csv file format js This folder contains all scripts that are used in the program. The most important ones are: - index.html, which contains all timeline components of the experiment - rl-model.js, which contains the python code for the rugged learning model. In this file, the reaction time is updated using the continous correctness score. - jspsych-html-keyboard-word-response, which is a plugin that is used to create each trial (listen to the keyboard, etc.) In this plugin, the correctness of the trials are estimated and the feedback prompts are prepared.

To run the experiment:

  1. run the following line in your terminal:

    cd jsrl && php -S localhost:8080

  2. enter the follwing link in a web browser:

    localhost:8080/index.html

Or run in Docker:

Docker needs to be given ownership of the data folder (only once) (details):

sudo chown -R 33:33 jsrl/data

(Depending on the system's permissions setup, read access may also need to be given for the whole directory.)

Launch the server:

sudo docker-compose up

Troubleshooting

Setup options can be changed at the top of the index.html file.