websperiment is a domain-specific language for web-based surveys and experiments.
Q::Satisfaction = Q::ScaleHorizontal.declare_new do
insert_future_layout
scale :range => 0..10,
:start => "Extremely \n dissatisfied",
:end => "Extremely \n satisfied"
end
Q::Happiness = Q::Satisfaction.declare_new do
text "All things considered, how satisfied are you with your life as a whole nowadays?"
completion :prompted,
:message => 'We would be very grateful for a response to this question.'
end
websperiment is made of Ruby (1.9) and web standards, and is:
- Quick and simple for common tasks (e.g. validating and prompting for inputs; routing; showing, hiding, and adapting questions; ...).
- Flexible and extensible for specific needs, making good use of polymorphism and inheritance.
- Concise and readable so that the implementation is the specification and vice versa.
Try this survey made with websperiment, or read more in the Journal of Choice Modelling (open-access).
websperiment is created by George MacKerron, and will be available under an open-source licence..
Last updated: December 2011