rustrict 0.7.38

rustrict is a profanity filter for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use rustrict::{CensorStr, Type};

fn main() {
    show_analysis("Helló world!");
    show_analysis("Hello shit world ass");
    show_analysis("assassin push it");
    show_analysis("$#1t f-u_c_k βιτ⊂η d u m b a s s");
}

fn show_analysis(text: &str) {
    println!("\"{}\" is mean? {}", text, text.is(Type::MEAN));
}