Skip to main content

matches_exit_intent

Function matches_exit_intent 

Source
pub fn matches_exit_intent(normalized: &str) -> bool
Expand description

Whether the normalized text expresses an exit-and-implement intent.

Mirrors the runloop’s detection priority: direct commands (exact), approval words (whole-word), approval phrases (substring), then trigger phrases (substring). The caller must check matches_stay_intent first so that stay phrases win.