Skip to main content

has_phrase

Function has_phrase 

Source
fn has_phrase(lower: &str, phrase: &str) -> bool
Expand description

Whether phrase occurs in lower as whole words. A bare substring match would read “has an AI summary bug” as the refusal “as an ai”.