Advertisement
Guest User

Untitled

a guest
Mar 30th, 2021
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. var shuffleSequence = seq("intro", sepWith("sep", seq("practice", rshuffle("s1", "s2"))), sepWith("sep", rshuffle("q1", "q2")));
  2. var practiceItemTypes = ["practice"];
  3.  
  4. var defaults = [
  5. "Separator", {
  6. transfer: 1000,
  7. normalMessage: "Please wait for the next sentence.",
  8. errorMessage: "Wrong. Please wait for the next sentence."
  9. },
  10. "DashedSentence", {
  11. mode: "self-paced reading"
  12. },
  13. "AcceptabilityJudgment", {
  14. as: ["1", "2", "3", "4", "5", "6", "7"],
  15. presentAsScale: true,
  16. instructions: "Use number keys or click boxes to answer.",
  17. leftComment: "(Very unsure)", rightComment: "(Very confident)"
  18. },
  19. "Form", {
  20. hideProgressBar: false,
  21. continueOnReturn: false,
  22. saveReactionTime: true
  23. },
  24. "Question", {
  25. hasCorrect: true
  26. },
  27. "Message", {
  28. hideProgressBar: true
  29. },
  30. "DashedSentenceRepeat", {
  31. mode: "self-paced reading"
  32. }
  33. ];
  34.  
  35. var items = [
  36.  
  37. // New in Ibex 0.3-beta-9. You can now add a '__SendResults__' controller in your shuffle
  38. // sequence to send results before the experiment has finished. This is NOT intended to allow
  39. // for incremental sending of results -- you should send results exactly once per experiment.
  40. // However, it does permit additional messages to be displayed to participants once the
  41. // experiment itself is over. If you are manually inserting a '__SendResults__' controller into
  42. // the shuffle sequence, you must set the 'manualSendResults' configuration variable to 'true', since
  43. // otherwise, results are automatically sent at the end of the experiment.
  44. //
  45. //["sr", "__SendResults__", { }],
  46.  
  47. ["sep", "Separator", { }],
  48.  
  49. // New in Ibex 0.3-beta19. You can now determine the point in the experiment at which the counter
  50. // for latin square designs will be updated. (Previously, this was always updated upon completion
  51. // of the experiment.) To do this, insert the special '__SetCounter__' controller at the desired
  52. // point in your running order. If given no options, the counter is incremented by one. If given
  53. // an 'inc' option, the counter is incremented by the specified amount. If given a 'set' option,
  54. // the counter is set to the given number. (E.g., { set: 100 }, { inc: -1 })
  55. //
  56. //["setcounter", "__SetCounter__", { }],
  57.  
  58. // NOTE: You could also use the 'Message' controller for the experiment intro (this provides a simple
  59. // consent checkbox).
  60.  
  61. ["intro", "Form", {
  62. html: { include: "example_intro.html" },
  63. validators: {
  64. age: function (s) { if (s.match(/^\d+$/)) return true; else return "Bad value for \u2018age\u2019"; }
  65. }
  66. } ],
  67.  
  68. //
  69. // Three practice items for self-paced reading (one with a comprehension question).
  70. //
  71. ["practice", "DashedSentence", {s: "This is a practice sentence to get you used to reading sentences like this."}],
  72. ["practice", "DashedSentence", {s: "This is another practice sentence with a practice question following it."},
  73. "Question", {hasCorrect: false, randomOrder: false,
  74. q: "How would you like to answer this question?",
  75. as: ["Press 1 or click here for this answer.",
  76. "Press 2 or click here for this answer.",
  77. "Press 3 or click here for this answer."]}],
  78. ["practice", "DashedSentence", {s: "This is the last practice sentence before the experiment begins."}],
  79.  
  80. //
  81. // Two "real" (i.e. non-filler) self-paced reading items with corresponding acceptability judgment items.
  82. // There are two conditions.
  83. //
  84.  
  85. [["s1",1], "DashedSentence", {s: "The journalist interviewed an actress who he knew to be shy of publicity after meeting on a previous occasion."},
  86. "Question", {q: "Would you like to read this sentence again?", as: ["Yes","No"], hasCorrect: "Yes"},
  87. "DashedSentenceRepeat", {s: "The journalist interviewed an actress who he knew to be shy of publicity after meeting on a previous occasion."},
  88. "Form", { html: { include: "question_form.html" } }],
  89. [["s2",1], "DashedSentence", {s: "The journalist interviewed an actress who after meeting on a previous occasion he knew to be shy of publicity."},
  90. "Question", {q: "Would you like to read this sentence again?", as: ["Yes","No"], hasCorrect: "Yes"},
  91. "DashedSentenceRepeat", {s: "The journalist interviewed an actress who after meeting on a previous occasion he knew to be shy of publicity."},
  92. "Question", {q: "The actress was:", as: ["shy", "publicity-seeking", "impatient"]},
  93. "Form", { html: { include: "question_form.html" } }],
  94.  
  95. // The first question will be chosen if the first sentence from the previous two items is chosen;
  96. // the second question will be chosen if the second sentence from the previous pair of items is chosen.
  97. [["q1",[100,1]], "AcceptabilityJudgment", {s: "Please rate your confidence in your answer for the previous question."}],
  98. [["q2",[100,1]], "AcceptabilityJudgment", {s: "Please rate your confidence in your answer for the previous question."}]
  99.  
  100.  
  101. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement