Skip to main content

humanize

Function humanize 

Source
pub fn humanize(text: &str) -> CleaningResult<'_>
Expand description

Convenience: clean with the humanize preset.

§Arguments

  • text: Input text to clean.

§Returns

Cleaned output and statistics.

§Errors

This infallible wrapper does not return errors; construct a TextCleaner and call TextCleaner::try_clean for error handling.

§Panics

Panics when normalization is requested but the unorm feature is disabled.