April 3, 2022 at 4:39 pm #8003jinyoungjoParticipant
I’m designing an experiment in which participants see the same target and filler words, but with these words preceded by (possibly) different prewords (please see below). For example, let’s say that I have two target words (discards, disclaimers) and two filler words (miscarried, misconceiving).
– Each participant goes through four trials, one for each target/filler (i.e. discards, disclaimers, miscarried, misconceiving)
– The target/filler words are always preceded by a randomly chosen preword. The target/filler words differ from each other in terms of which preword they can follow. For instance, “discards” can be preceded by one of “she”, “he”, or “it”; “miscarried” can only be followed by “she”.
– For more specific hypothetical examples: Participant 1 sees “she miscarried”, “their disclaimers”, “it discards”, “they’re misconceiving”, and Participant 2 sees “their disclaimers”, “he discards”, “she miscarried”, “I’m misconceiving”, etc. The column “test_sentence” is what is presented to the participants.
I am having difficulty specifying in the script which target/filler is accompanied by which preword. Is there way to ensure some word is always preceded by a word that is randomly chosen among a specific set of words?
Thank you!April 3, 2022 at 10:23 pm #8005JeremyKeymaster
What I would do is have one line per item, and one column listing all the possible prewords for that item, separated by a specific character. For example, using
.as the separating character, I would have this table:
prewords,target,type she.he.it,discards,target her.their.his.your.our.my,disclaimers,target she,miscarried,filler she's.he's.they're.I'm.you're.we're,misconceiving,filler
And then generate my trials like this:
Template( "table.csv", row => newTrial( "trial" , prewords = row.prewords.split('.'), fisherYates(prewords) , newText(prewords+" "+row.target).print() , newButton("Next") .print() .wait() ) .log("preword", prewords) .log("target", row.target) )
JeremyApril 4, 2022 at 1:19 pm #8008jinyoungjoParticipant
This is working great. Thank you very much!!
- You must be logged in to reply to this topic.