Expand description
Question decision tree.
Reads the current ClassificationState and returns the next
Question + QuestionStep pair to present to the user.
Pure functions; no side-effects.
Functions§
- choice_
index_ to_ intended_ use - Map intended-use choice index to
IntendedUse. - choice_
index_ to_ organic_ inorganic - Map organic/inorganic choice index to
OrganicInorganic. - choice_
index_ to_ physical_ form - Map physical-form choice index to
PhysicalForm. - multi_
choice_ indices_ to_ functional_ groups - Map functional-group multi-choice indices to string keys.
- next_
question - Return the next question to ask (and its step tag), or
Nonewhen all information has been collected and the pipeline can be invoked.