Skip to main content

scrub_text

Function scrub_text 

Source
pub fn scrub_text(text: &str, profile: &StyloProfile) -> String
Expand description

Apply all scrubbing transformations to the input text.

Operations applied:

  1. Punctuation normalisation (if profile.normalize_punctuation)
  2. Contraction expansion
  3. Whitespace normalisation