Reply To: syntax acceptability judgment – pictures and template

PennController for IBEX Forums Support syntax acceptability judgment – pictures and template Reply To: syntax acceptability judgment – pictures and template

#7120
Jeremy
Keymaster

Hello,

You can use the Scale element:

Template("design.csv", variable =>
    newTrial("experimental-trial",
        newImage("target", variable.foto)
          .size("25vw","auto")
          .print()
        ,
        newText("sentence", variable.sentence)
          .center()
          .print()
        ,
        newScale("acceptability", 7)
          .before( newText("(very bad)") )
          .after( newText("(very good)") )
          .callback( getText("warning").hidden() )
          .center()
          .log()
          .print()
        ,
        newText("warning", "Please provide a judgment before you can continue").center().color("red").hidden().print()
        ,
        newButton("continue", "Proceed")
          .print()
          .center()
          .wait( getScale("acceptability").test.selected().failure(getText("warning").visible()) )
          .log()
    )
)

You should not turn the debugger off until you start collecting data from your first participant

Jeremy