Hi,
I want to run a sentence completion experiment where participants are presented with a partial sentence and their task is to re-type the prompt and complete the sentence. Before allowing participants to continue to the next prompt, I want to check that they have typed out the prompt correctly along with at least one other word. Right now I have something like the code below and it does not let me progress. If I replace the regex with ” ” , then it does let me progress when I repeat the prompt and insert a space after. Similarly if I have just the regex, it lets me progress as long as I type a single word. Could you please point out what I am doing wrong? Thank you!
newText("Prime", row.prime)
.settings.center()
.print()
,
newVar("RT_prime").global().set( v_prime => Date.now())
,
newTextInput("response")
.print()
,
newButton("continue", "Next prompt")
.settings.center()
.settings.log()
.print()
.wait( getTextInput("response").test.text(row.prime+/\w+/) )
.remove()