ExTypesafe.Question.Score (ExTypesafe v0.1.0)

Copy Markdown View Source

Rates the state along a rubric you define. Returns a probability-weighted value across your levels.

criteria is an ordered list of level descriptions (2–10 levels).

%ExTypesafe.Question.Score{
  instructions: "How frustrated is the customer?",
  criteria: ["Calm", "Frustrated", "Very angry"]
}

Summary

Types

t()

@type t() :: %ExTypesafe.Question.Score{
  criteria: [String.t()],
  instructions: ExTypesafe.Question.instructions(),
  type: term()
}