detect

Function detect 

Source
pub fn detect(content: &str) -> Option<String>
Expand description

Returns the refusal sentence when content opens with one of the known patterns, else None. The returned sentence is the first sentence (truncated at ., ?, or !) with trailing whitespace trimmed. When the kill-switch env var is set, always returns None.