I’m trying to implement a self-paced reading experiment consisting of several short stories. Every story should be presented sentence by sentence.
In some stories, some sentences (very specific one, depending on the story) should be accompanied by an image.
What I am trying right now:
As I have read different posts about self-paced reading experiments, I placed every story in one cell. The sentences are separated via /.
My structure is very simple (see screenshot)
I use the following code:
In the „Load Text“ Routine
Begin Experiment tab:
loopN = -1;
Begin Routine tab
mySentences = thisText.split("/"); nTrials = mySentences.length;
In the „Stories“ Routine:
In the TextBox: $mySentences[loopN]
I have several issues:
First: This solution only works for the first story – for every other story, only a white screen appears. I think the position of loopN+=1; is wrong, but I can’t figure out where to put it.
Second: I don’t know how only some sentences can be accompanied by images. It is no problem to show the same image for every sentence, but I do not know how to add only sometimes an image.
Third: The data output is not optimal: Is there a way to save the separated sentences in the same line as the corresponding reaction time? Right now, the whole story is in one cell – which makes sense since I have implemented it this way but is not optimal for later analysis. I am interested in the reading time for each sentence – measured as time between two key presses.
I really appreciate any help you can provide.