Skip to main content

detect_mood

Function detect_mood 

Source
pub fn detect_mood(text: &str) -> Option<Mood>
Expand description

Detect a coarse mood from the user’s latest message. Returns None when the signal is weak or neutral. Negative states are checked first since handling them well matters most.