Return to the Solving Anagrams page
*SOLVING ANAGRAMS (uses textbox input)*
Script Author: Katja Borchert, Ph.D. (firstname.lastname@example.org) for Millisecond Software, LLC
last updated: 03-13-2020 by K. Borchert (email@example.com) for Millisecond Software, LLC
Script Copyright © 03-13-2020 Millisecond Software
This script implements the an Anagram Solving Paradigm based in part on:
Novick, L., & Sherman, S. (2003). On the nature of insight solutions: Evidence from skill differences in anagram solution.
The Quarterly Journal of Experimental Psychology Section A, 56(2), 351-382.
Tresselt, M. E., & Mayzner, M. S. (1966). Normative solution times for a sample of 134 solution words and 378 associated anagrams.
Psychonomic Monograph Supplements, 1, 293-298.
By default, participants work on 30 5-letter anagrams in increasing difficulty*. They have 10s (default) to come
with a solution. Once they have a solution, they need to press and then type in the solution (limit of 10s).
Participants receive solution feedback.
*increasing difficulty: based on the median response times needed to solve the anagrams as
reported in Tresselt & Mayzner (1966)
the default set-up of the script takes appr. 5 minutes to complete
DATA FILE INFORMATION
The default data stored in the data files are:
(1) Raw data file: 'solvinganagrams_textboxes_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.form: A vs. B (different lists of anagrams that are matched in difficulty)
values.phase: 0 = demo
1: anagrams 1-10;
2: anagrams 11-20;
3: anagrams 21-30;
values.anagramCount: counts the number of anagrams run
values.anagram: stores the current anagram
values.anagramSolution: stores the solution of the current anagram
response: the participant's response
latency: the response latency (in ms)
values.anagramRT: stores the latency (in ms) of Spacebar press
values.firstLetterRT: stores the latency of entering the first letter after Spacebar press (time btw. hitting spacebar and entering first letter)
values.proposedSolutionRT: time (in ms) it took to type solution; measured from spacebar press until solution was submitted
values.proposedSolution: stores the proposed anagram solution
values.ACC: 1 = proposed solution is correct;
0 = otherwise
values.solutionFlag: 1 = solution is flagged (proposedSolutionRT > parameters.flagSolutionRT)
0 = solution is not flagged
(2) Summary data file: 'solvinganagrams_textboxes_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)
values.form: form run (A vs. B)
values.nr_anagrams: the number of anagrams presented (based on the provided item lists)
expressions.ACC: proportion correctly solved anagrams
expressions.medianRT: median solution time (in ms); measured from onset of anagram until first letter (of correct solutions) is hit
expressions.meanRT: mean solution time (in ms); measured from onset of anagram until first letter (of correct solutions) is hit
expressions.medianProposedSolutionRT: median proposed solution time (in ms); measured from entering first letter until solution is submitted
expressions.meanProposedSolutionRT: mean proposed solution time (in ms); measured from entering first letter until solution is submitted
expressions.meanCorrections: mean number of corrections made to proposed solution across all anagrams
correction = backspace is used for letter deletion
values.countSolutionFlags: number of times a solution was flagged because values.proposedSolutionRT > parameters.flagSolutionRT (default: 10s)
for 30 anagrams:
values.ACC_10: proportion correct solution for anagram 1-10
values.medianRT_10: median correct latency (in ms) for anagram 1-10 (latency measured from onset of anagram until first key is hit)
values.meanRT_10: mean correct latency (in ms) for anagram 1-10 (latency measured from onset of anagram until first key is hit)
values.ACC_20: proportion correct solution for anagram 11-20
values.medianRT_20: median correct latency (in ms) for anagram 11-20 (latency measured from onset of anagram until first key is hit)
values.meanRT_20: mean correct latency (in ms) for anagram 11-20 (latency measured from onset of anagram until first key is hit)
values.ACC_30: proportion correct solution for anagram 21-30
values.medianRT_30: median correct latency (in ms) for anagram 21-30 (latency measured from onset of anagram until first key is hit)
values.meanRT_30: mean correct latency (in ms) for anagram 21-30 (latency measured from onset of anagram until first key is hit)
* separate data files: to change to one data file for all participants (on Inquisit Lab only), go to section
"DATA" and follow further instructions
Script counterbalances the use of 2 anagram forms A vs. B by groupnumber:
odd groupnumbers run version A
evengroupnumbers run version B
1. Demo Block: runs 1 demo trial (by default: additional demo anagrams can be added under section Editable Stimuli and the script will automatically adapt)
- demo trial: only accepts the correct solution
=> if the time limit is up without a response, a solution hint is provided
- provides feedback
2. Test Block: runs 30 trials (by default: additional test anagrams can be added/removed under section Editable Stimuli
and the script will automatically adapt)
- each anagram is presented for 10s (default, can be edited under section Editable Parameters)
- if the Spacebar is hit within those 10s, participants can type in their response into a textbox
(if participants take longer than parameters.solutionFlagRT (10s), the solution is flagged)
- once the participant has submitted the final solution, feedback is provided
Anagram Presentation (for max. 10s) -> Textbox (if applicable)->Feedback
Anagram selection for FormA/FormB:
Tresselt & Mayzner (1966), Table1 lists anagrams of 5-letter words in increasing median solution times.
An increase in median solution time was taken as an indicator of increasing anagram difficulty in this script.
Attempts were made to match the 30 anagrams chosen for formA and formB as closely as possible
in increasing median solution times:
Mean(A) = 45.03s, SD(A) = 62.63s, Median(A) = 20.75s
Mean(B) = 45.08s, SD(B) = 62.38s, Median(B) = 20.75s
(see anagrampool.xlsx for individual solution times)
Anagrams and their solution can be easily replaced under section Editable Stimuli.
The task automatically adjusts if the number of anagrams changes.
provided by Millisecond Software under section Editable Instructions
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:
/anagramFontSize: the size of the anagrams in percentage of canvas height (default: 5%)
/maxAnagramPresentationTime: the maximum presentation time (in ms) of the anagram (default: 10000ms)
/flagSolutionRT: if participant needs more than 10s (default) to enter the solution after hitting the spacebar,
the solution is flagged
(Note: there is no timelimit on typing in the solution to the anagram after pressing Spacebar.
Thus, participants could potentially press Spacebar without knowing the solution and then
use extra time to think about the solution before submitting it)