Return to the Scrambled Sentences Task page
___________________________________________________________________________________________________________________	

									*SCRAMBLED SENTENCES TASK*
___________________________________________________________________________________________________________________	

Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com) for Millisecond Software, LLC
Date: 04-07-2016
last updated:  03-13-2020 by K. Borchert (katjab@millisecond.com) for Millisecond Software, LLC

Script Copyright © 03-13-2020 Millisecond Software

Millisecond Software thanks Timo Brockmeyer for collaborating on this script!

___________________________________________________________________________________________________________________
BACKGROUND INFO 	
___________________________________________________________________________________________________________________	
This script implements a simple computerized Scrambled Sentences Task, a test to measure 
interpretation bias.

The implemented procedure is based on the following publications:

Hedlund, S., & Rude, S. S. (1995). Evidence of latent depressive schemas
in formerly depressed individuals. Journal of Abnormal Psychology,
104, 517–525.

Wenzlaff, R. M., & Bates, D. E. (1998). Unmasking a cognitive vulnerability
to depression: How lapses in mental control reveal depressive
thinking. Journal of Personality and Social Psychology, 75, 1559–1571

Everaert, J., Duyck, W., & Koster, E. H. W. (2014). Attention, interpretation, and memory
biases in subclinical depression: A proof-of-principle test of the combined
cognitive biases hypothesis. Emotion, 14(2), 331–340

Sanchez, A. et al (2015). Life is . . . great! Emotional attention during instructed and
uninstructed ambiguity resolution in relation to depressive symptoms.
Biological Psychology, 109 (2015), 67–72.

___________________________________________________________________________________________________________________
TASK DESCRIPTION
___________________________________________________________________________________________________________________	
Participants are given scrambled sentences (e.g. "born winner am loser a I") with 6 words and are asked 
to unscramble them using 5 of the 6 given words by entering corresponding numbers (e.g. 1 = 'born', 6 = 'I').
Half the scrambled sentences are "Emotional" ('winner' vs. 'loser') half the scrambled sentence are neutral 
in regard to emotion. A cognitive load test is run for half the participants (based on groupid).
 
___________________________________________________________________________________________________________________	
DURATION 
___________________________________________________________________________________________________________________	
the default set-up of the script takes appr. 12 minutes to complete

___________________________________________________________________________________________________________________	
DATA FILE INFORMATION 
___________________________________________________________________________________________________________________	
The default data stored in the data files are:

(1) Raw data file: 'scrambledsentencestask_raw*.iqdat' (a separate file for each participant)

build:								The specific Inquisit version used (the 'build') that was run
computer.platform:					the platform the script was run on (win/mac/ios/android)
date, time, 						date and time script was run 
subject, group, 					with the current subject/groupnumber
script.sessionid:					with the current session id

blockcode, blocknum:				the name and number of the current block (built-in Inquisit variable)
trialcode, trialnum: 				the name and number of the currently recorded trial (built-in Inquisit variable)
										Note: trialnum is a built-in Inquisit variable; it counts all trials run; even those
										that do not store data to the data file such as feedback trials. Thus, trialnum 
										may not reflect the number of main trials run per block. 
										
									
values.sentenceCondition:			0 = demo; 
									1 = Emotional; 
									2 = Control
									
values.CL_Condition:				cognitive load condition: 
									1 = runs cognitive load task; 
									2 = does not run cognitive load task
										
values.index						itemnumber of current sentence			
									
values.scrambledSentence:			the currently presented scrambled sentence
values.positiveSolution:			stores the positive (pseudopositive for control) solution for the currently scrambled sentence
values.negativeSolution:			stores the negative solution (pseudonegative for control) for the currently scrambled sentence 
values.numericSentence:				stores the cumulative numeric response
values.sentenceResponse:			the entered unscrambled sentence (as translated from the numericSentence)
values.responseCategory:			the emotional category of the response: "positive", "negative", "neutral" (for correct responses), "other" (for incorrect responses)
values.numericResponse:				helper variable: stores the current numeric response based on scancode of response button

correct:							accuracy of response (1 = correct; 0 = otherwise)
values.cumulativeRT:				stores the cumulative latencies (in ms) of selecting the numbers of the current cumulative numeric response


(2) Summary data file: 	'scrambledsentencestask_summary*.iqdat' (a separate file for each participant)

computer.platform:					the platform the script was run on (win/mac/ios/android)
script.startdate:					date script was run
script.starttime:					time script was started
script.subjectid:					assigned subject id number
script.groupid:						assigned group id number
script.sessionid:					assigned session id number
script.elapsedtime:					time it took to run script (in ms); measured from onset to offset of script
script.completed:					0 = script was not completed (prematurely aborted); 
									1 = script was completed (all conditions run)


expressions.propCorrectSolutions:		proportion correct solutions (correct = either the 'positive'/control1 or the 'negative'/control2 solution)
expressions.meanRT_Solutions:			mean latency (in ms) of entering the 5 digits for a correct solution 

expressions.propCorrectSolutions_E:		proportion correct solutions in condition 1 (Emotional)
expressions.meanRT_E:					mean latency (in ms) of entering the 5 digits for a correct solution in condition 1 (Emotional)
expressions.propNegSolutions:			proportion negative solutions (based on correct solutions entered) in condition 1 (Emotional)
expressions.propPosSolutions:			proportion positive solutions (based on correct solutions entered) in condition 1 (Emotional)
expressions.meanRT_Neg:					mean latency (in ms) of entering the 5 digits for negative solutions in condition 1 (Emotional)
expressions.meanRT_Pos:					mean latency (in ms) of entering the 5 digits for positive solutions in condition 1 (Emotional)

expressions.propCorrectSolutions_C:		proportion correct solutions in condition 2 (Control)
expressions.meanRT_C:					mean latency (in ms) of entering the 5 digits for a correct solution in condition 2 (Control)

values.CL_Condition:					cognitive load condition: 
											1 = runs cognitive load task; 
											2 = does not run cognitive load task
										
values.CLcorrect:						1 = cognitive load task correct; 
											0 = cognitive load task incorrect; 
											N/A = if no cognitive load condition was run
______________________________________________________________________________________________________________	
EXPERIMENTAL SET-UP 
___________________________________________________________________________________________________________________
This script runs
1) 5 practice sentences (neutral)
2) 1 Testblock of 40 statements: 20 Emotional Statements, 20 Neutral Statements (order is randomly determined 
with constraint that max.3 of the same trial type can run consecutively)

Each trial starts with a fixation cross presented center left for 2000ms (default) before it appears and 
the scrambled sentence (each word in its own box) is presented for max. 10000ms (default).
Participants need to unscramble the sentences and click on the words in the order they should appear.
Digits appear above each word to indicate the selected word order.
Responses cannot be corrected.

Cognitive Load (CL): This script runs a cognitive load task for participants with odd numbered groupids
- presents a 6-digit number of 7000ms (can be edited) at start of test
- digit recall at end of test

___________________________________________________________________________________________________________________	
STIMULI
___________________________________________________________________________________________________________________	
5 practice sentences
20 emotional statements (taken from Wentzlaff & Bates, 1998*). * slightly altered to avoid ambiguous sentence 
structures as much as possible
	constraints on the order of the scrambled words:
	* half the scrambled sentences present the positive word before the negative
	* target words never start or end a scrambled sentence
	* target words do not appear directly next to each other in the scrambled sentences
20 neutral statements (provided by Millisecond Software as demo sentences only) 
(same constraints as for the Emotional sentences)

edit all stimuli under section Editable Stimuli

___________________________________________________________________________________________________________________	
INSTRUCTIONS 
___________________________________________________________________________________________________________________	
Instructions are not original to any study- they are based on Wentzlaff & Bates (1998) and
can be edited under section Editable Instructions
	
___________________________________________________________________________________________________________________	
EDITABLE CODE 
___________________________________________________________________________________________________________________	
check below for (relatively) easily editable parameters, stimuli, instructions etc. 
Keep in mind that you can use this script as a template and therefore always "mess" with the entire code 
to further customize your experiment.

The parameters you can change are:

/wordSize:						the size of the word stimuli in canvas height percentages (default: 1.8%)
/digitSize::					the size of the cognitive load digits in canvas height percentages (default: 5%)

/fixationDuration:				duration (in ms) fixation cross is presented by itself (default: 2000ms)
/maxAssemblyTime:				the max. duration (in ms) allowed to assembly each sentence (default: 10000ms)

/iti:							intertrial interval (in ms) = blank screen between trials before next 
								fixation cross is presented (default: 7000ms)
								
/CL_digitDuration:				Cognitive Load digit presentation duration (in ms) (default: 7000ms)