detect

Function detect 

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

2026-09-26: Returns the refusal sentence when content opens with one of the known patterns, else None. The sentence ends at the first ., ? or ! within 512 characters, else at the first newline, and is trimmed. When METRALE_DISABLE_REFUSAL_DETECTION=1, always returns None.