Skip to main content

sentences

Function sentences 

Source
pub fn sentences(text: &str) -> Vec<String>
Expand description

The sentences of text, in order, with their punctuation.

A unit ends at a ., ! or ? followed by whitespace or the end, except a period between two digits, which is a decimal. Abbreviations are not recognised: a false split costs one extra render, a missed split only latency.