This article applies to:
These samples show how to create two different kinds of moving window paradigms. The "Centered Word Moving Window.es3" sample presents only the selected word, whereas the "Masked Sentence Moving Window.es3" sample presents the selected word within the masked sentence.
These samples are different from the sample provided in Moving Window  due to how the entire sentence can be the value of one attribute. The Inline script in the samples takes the value of the attribute and uses the SplitStrings function to parse each word delimited by a space into items of an array. The array is then iterated over to create a level in a List object with an attribute that contains a word corresponding to the index of the array.
The Sentence attribute splits into an array where each item of the array is a word delimited by a space. The Inline Script adds each item of the array as a level in a List Object so that each trial is a presentation of a new word.
The SplitStrings function stores the sentence attribute into an array. The experiment will error if there is more than one space separating each word in the Sentence attribute.