Function nlprule::rules::apply_suggestions[][src]

pub fn apply_suggestions(text: &str, suggestions: &[Suggestion]) -> String

Correct a text by applying suggestions to it. In the case of multiple possible replacements, always chooses the first one.