Skip to main content

split_sentences

Function split_sentences 

Source
pub fn split_sentences(s: &str) -> Vec<&str>
Expand description

Splits text into sentences (approximate).

Uses simple heuristics: splits on ., !, ? followed by whitespace.

§Arguments

  • s - The string to split.

§Returns

Vector of sentence strings.