digit_span_jspsych

A classical Digit Span Task created with jsPsych.

https://github.com/vekteo/digit_span_jspsych

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: springer.com, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.9%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

A classical Digit Span Task created with jsPsych.

Basic Info
  • Host: GitHub
  • Owner: vekteo
  • License: mit
  • Language: JavaScript
  • Default Branch: main
  • Homepage:
  • Size: 3.93 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 1
  • Releases: 1
Created about 5 years ago · Last pushed over 3 years ago
Metadata Files
Readme License Citation

README.md

Digit Span Task created with jsPsych

Created by the MEMO Team of Lyon Neuroscience Research Center (CRNL) (PI: Dezso Nemeth)

A Digit Span Task created with jsPsych de Leeuw, J. R., 2015.

Citation

If you use the script, please include this citation in your manuscript:

Vékony, T. (2021). Digit Span Task created with jsPsych (Version 1.0.0) [Computer software]. https://doi.org/10.5281/zenodo.7096258 DOI

Structure of the task

One digit (1-9) per second appears one the screen (only one at a time). The task of the user is to try to remember the digits in their order of appearance. After a few digits, a textbox appears on the screen and the user have to type in their answer. The answer can be submitted by clicking on the 'Continue' button, or by hitting Enter.

The Digit Span task. The user has to try to remember the presented digits in their order of appearance.

The task starts with two practice runs (with 2 digits per run). Here, the user receive feedback whether their answer was correct. After the two practice runs, the task begins. Altogether, seven levels can be completed. On the first level, three digits are presented, and on each level, the length of the digit stream become one digit longer (i.e., the maximum length is 9 digits). Each level contains four trials. If the user answers correctly in three out of the four trials, the next level is presented. If the level is not completed successfully (i.e., the user answers correctly for less than three trials), the task ends.

Output file

  • success: whether fullscreen mode was successfully started/ended (true or false)
  • trial_type: jsPsych trialtype of the given trial (fullscreen, html-keyboard-response or survey-html-form)
  • trial_index: the number of the given trials (all events considered, even instructions, feedbacks!)
  • time_elapsed: the time elapsed from the start of the script in ms
  • subject: a 15-character long random subject ID for online version, and customized subject number for offline version
  • session: customized session number (for offline version only)
  • internalcodeid: internal node id of the trial
  • browser_event: browser events at the given trial (fullscreenenter, fullscreenexit, blur or focus)
  • view_history: viewing data about the instruction trial
  • rt: the reaction time for submitting the answer
  • testpart: the part of the task (instruction, startpractice, stimulus, answer, feedback, start_task, debrief)
  • stimulus: stimulus on the screen in HTML
  • key_press: number code of the key pressed
  • level: the level of the task (2 for the practice runs, 3-9 for the task runs)
  • correct_answer: the stimulus stream, the correct answer
  • numberwithinlevel: the number of the trial within the given level (1-2 for the practice runs, 1-4 for the task runs)
  • numberwithinrun: the number of the stimulus within the run (1-2 for the practice runs, 1-9 for the task runs)
  • is_mistake: if the answer given was uncorrect (0 - the answer was correct; 1 - the answer was incorrect)
  • responses: the answer typed in the input field (in an object)
  • digit_span: the digit span score (the length of the run where at least 3/4 trials were correctly remembered)

Setting options

You can set the following parameters by modifying the parameters.js file:

  • duration of the stimulus (in ms): the digits' presentation time (default: 1000 ms)
  • language: currently available languages are: english (en), hungarian (hu), spanish (es), french (fr), portuguese (pt)

How to start the task

Open the index.html file in either the offline or online folder. When the offline version is started, you can customize the subject and session numbers (any number is accepted). If you start the offline version, a random subject ID will be allocated.

Browser requirements

Any browser except Safari and Internet Explorer. Recommended: Chrome

Owner

  • Name: Teodóra Vékony, Ph.D.
  • Login: vekteo
  • Kind: user
  • Location: Lyon, France
  • Company: Lyon Neuroscience Research Center (CRNL)

Postdoctoral Researcher @ Lyon Neuroscience Research Center (CRNL), INSERM U1028, CNRS UMR5292, Université Claude Bernard Lyon 1 | MEMO Team

Citation (CITATION.cff)

cff-version: 1.0.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Vékony
    given-names: Teodóra
    orcid: https://orcid.org/0000-0002-8620-5685
title: "Digit Span Task created with jsPsych"
version: 1.0.0
doi: 10.5281/zenodo.7096258	
date-released: 2021-05-03

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 1
  • Total pull requests: 9
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.11
  • Merged pull requests: 8
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • lakshmis1999 (1)
Pull Request Authors
  • vekteo (9)
Top Labels
Issue Labels
Pull Request Labels