Skip to main content

normalize_answer

Function normalize_answer 

Source
pub fn normalize_answer(answer: &str, kind: QuestionType) -> String
Expand description

Normalize a user’s answer based on the question type.

For boolean questions, converts natural language (yes/no/y/n) to “true”/“false”.