Skip to main content

ends_in_question

Function ends_in_question 

Source
fn ends_in_question(message: &str) -> bool
Expand description

Whether a message’s last paragraph asks something: one of its sentences ends in a question mark. The whole paragraph, not only its end, because a question is often followed by a line of courtesy (“Which do you prefer? Let me know and I’ll proceed.”). A question earlier in the message, which it went on to answer, is not in the last paragraph.