Structs
Censor is a flexible profanity filter that can analyze and/or censor arbitrary text.
Context is useful for taking moderation actions on a per-user basis i.e. each user would get their own Context.
Options for customizing Context::process_with_options. Always initialize with ..Default::default(),
as new fields may be added in the future.
Options that control rate-limiting.
Options that control repetition-limiting.
Type is represents a type or severity of inappropriateness. They can be combined with bitwise operators, and are not mutually exclusive.
Enums
Traits
CensorIter makes it easy to sanitize an arbitrary Iterator<Item=char> by calling .censor().
CensorStr makes it easy to sanitize a String or &str by calling .censor().
Functions
Returns true iff the character is effectively whitespace. The definition of whitespace is broader than that of Unicode, because it includes control characters and a few additional blank characters.
Trims whitespace characters from both ends of a string, according to the definition of
crate::is_whitespace.