Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var shuffleSequence = seq("intro", sepWith("sep", seq("practice", rshuffle("s1", "s2"))), sepWith("sep", rshuffle("q1", "q2")));
- var practiceItemTypes = ["practice"];
- var defaults = [
- "Separator", {
- transfer: 1000,
- normalMessage: "Please wait for the next sentence.",
- errorMessage: "Wrong. Please wait for the next sentence."
- },
- "DashedSentence", {
- mode: "self-paced reading"
- },
- "AcceptabilityJudgment", {
- as: ["1", "2", "3", "4", "5", "6", "7"],
- presentAsScale: true,
- instructions: "Use number keys or click boxes to answer.",
- leftComment: "(Very unsure)", rightComment: "(Very confident)"
- },
- "Form", {
- hideProgressBar: false,
- continueOnReturn: false,
- saveReactionTime: true
- },
- "Question", {
- hasCorrect: true
- },
- "Message", {
- hideProgressBar: true
- },
- "DashedSentenceRepeat", {
- mode: "self-paced reading"
- }
- ];
- var items = [
- // New in Ibex 0.3-beta-9. You can now add a '__SendResults__' controller in your shuffle
- // sequence to send results before the experiment has finished. This is NOT intended to allow
- // for incremental sending of results -- you should send results exactly once per experiment.
- // However, it does permit additional messages to be displayed to participants once the
- // experiment itself is over. If you are manually inserting a '__SendResults__' controller into
- // the shuffle sequence, you must set the 'manualSendResults' configuration variable to 'true', since
- // otherwise, results are automatically sent at the end of the experiment.
- //
- //["sr", "__SendResults__", { }],
- ["sep", "Separator", { }],
- // New in Ibex 0.3-beta19. You can now determine the point in the experiment at which the counter
- // for latin square designs will be updated. (Previously, this was always updated upon completion
- // of the experiment.) To do this, insert the special '__SetCounter__' controller at the desired
- // point in your running order. If given no options, the counter is incremented by one. If given
- // an 'inc' option, the counter is incremented by the specified amount. If given a 'set' option,
- // the counter is set to the given number. (E.g., { set: 100 }, { inc: -1 })
- //
- //["setcounter", "__SetCounter__", { }],
- // NOTE: You could also use the 'Message' controller for the experiment intro (this provides a simple
- // consent checkbox).
- ["intro", "Form", {
- html: { include: "example_intro.html" },
- validators: {
- age: function (s) { if (s.match(/^\d+$/)) return true; else return "Bad value for \u2018age\u2019"; }
- }
- } ],
- //
- // Three practice items for self-paced reading (one with a comprehension question).
- //
- ["practice", "DashedSentence", {s: "This is a practice sentence to get you used to reading sentences like this."}],
- ["practice", "DashedSentence", {s: "This is another practice sentence with a practice question following it."},
- "Question", {hasCorrect: false, randomOrder: false,
- q: "How would you like to answer this question?",
- as: ["Press 1 or click here for this answer.",
- "Press 2 or click here for this answer.",
- "Press 3 or click here for this answer."]}],
- ["practice", "DashedSentence", {s: "This is the last practice sentence before the experiment begins."}],
- //
- // Two "real" (i.e. non-filler) self-paced reading items with corresponding acceptability judgment items.
- // There are two conditions.
- //
- [["s1",1], "DashedSentence", {s: "The journalist interviewed an actress who he knew to be shy of publicity after meeting on a previous occasion."},
- "Question", {q: "Would you like to read this sentence again?", as: ["Yes","No"], hasCorrect: "Yes"},
- "DashedSentenceRepeat", {s: "The journalist interviewed an actress who he knew to be shy of publicity after meeting on a previous occasion."},
- "Form", { html: { include: "question_form.html" } }],
- [["s2",1], "DashedSentence", {s: "The journalist interviewed an actress who after meeting on a previous occasion he knew to be shy of publicity."},
- "Question", {q: "Would you like to read this sentence again?", as: ["Yes","No"], hasCorrect: "Yes"},
- "DashedSentenceRepeat", {s: "The journalist interviewed an actress who after meeting on a previous occasion he knew to be shy of publicity."},
- "Question", {q: "The actress was:", as: ["shy", "publicity-seeking", "impatient"]},
- "Form", { html: { include: "question_form.html" } }],
- // The first question will be chosen if the first sentence from the previous two items is chosen;
- // the second question will be chosen if the second sentence from the previous pair of items is chosen.
- [["q1",[100,1]], "AcceptabilityJudgment", {s: "Please rate your confidence in your answer for the previous question."}],
- [["q2",[100,1]], "AcceptabilityJudgment", {s: "Please rate your confidence in your answer for the previous question."}]
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement