Skip to main content

classify_mistake

Function classify_mistake 

Source
pub fn classify_mistake(
    first_occurrence: bool,
    pattern_matches: usize,
    corrected_after_feedback: bool,
    systemic_factor: bool,
) -> MistakeType
Expand description

Classify a mistake based on pattern markers.

Takes: first_occurrence (bool), pattern_matches (count), corrected_after_feedback (bool), systemic_factor (bool).