Cloze plugin improvements: RT and ACC! #919
gustavoestivalet
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
These are great ideas. If you want to start working towards a pull request that would be wonderful.
We recommend that all data saved in jsPsych is a primitive type, like a number or character string. For arrays and objects, plugins generally convert these to JSON before storing them in the data. var trial_data = {
'rt' : rt,
'answers' : JSON.stringify(answers)
}; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Guys,
Last week I did a cloze experiment using the "jspsych-cloze" plugin. It was really easy to do the experiment using the "%%" tag, pretty smart! I figured out 4 amelioration:
There is no RT counter (I implemented it in the code below! Please, check it out!)
If the "check_answers" parameter is TRUE and the clozes are wrong, participant get blocked! I would be interesting to have an extra parameter to allow submission even with wrong answers (I did it by simplyfing the last if clause!).
3) Most important, in my view, if answers are given in the gaps and the option "check_answers" is TRUE, the final data should present a boolean "accuracy" array with the comparison from answers supposed in the gaps and answers provided (or not) by the participant (No idea in how to do it! Please, if you can figure out in how to implement it, it would be great!).
Also, I just try to save the data "answers" in a MySql VARCHAR, it just appears as 'Array'. Any idea in how to correctly catch the answers in the MySql?
Thanks a lot for all your attention and helping!
Beta Was this translation helpful? Give feedback.
All reactions