Open tmalsburg opened 1 month ago
Hi tmalsburg. When I started this plugin, there was to my knowledge no Self Paced Reading (SPR) plugin developed by the jspsych core team. In our lab we generally used to in-the-lab software and this online software using jspsych was necessary due to covid. The first version of this SPR used jsPsych version 6.x.y
There was I believe a youtube tutorial using jspsych for SPR, but that used a jsPsychHtmlKeyboardResponse or something similar to implement an SPR, where they replaced all - but one - word with underscores. This version uses a HtmlCanvas as output for the SPR and calculates the position of each word given. On the canvas lines are drawn where the words are and the visible word is rendered as one would expect. This version allows non monospaced fonts, and I think the spr back then didn't as words jumped sometime to a next/previous line as a 'i' is less wide as an '_'. The original (youtube version) posts output for every response for every single word. This version lumps the responses for all words in the output as one trial as opposed to one per word, to make the output way less verbose.
I was until your comment unaware of an "official" version, by jsPsych. I'll have a look, but I'm unsure whether I can find the time to write up the differences. We shift our attention back to in-the-lab software.
This experiment is tailored to the needs of our lab. I you like it you are free to use it as it is licensed by GPL-2.0.
Hey, thanks for the quick and detailed response. Much appreciated. To my knowledge, jsPsychSelfPacedReading was initially not developed by the jsPsych project but contributed in Oct 2021 by someone else. It's not officially part of jsPsych but lives in a directory for contributed third-party plugins. I'm not sure jsPsychSelfPacedReading is seeing significant use and I'm also not sure it's actively maintained. Like your plugin it's using a canvas for displaying text.
This looks really interesting. Thanks for sharing! If I understand correctly, your SPR plugin is independently developed from jsPsychSelfPacedReading, the other SPR plugin for jsPsych. Could you please add something to the documentation that explains differences between these plugins and pros/cons? Thank you!