.PHONY: fuzz
all: test
downloads:
wget -O test.csv https://raw.githubusercontent.com/vzhou842/profanity-check/master/profanity_check/data/clean_data.csv
wget -O src/dictionary.txt https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt
wget -O src/dictionary_common.txt https://raw.githubusercontent.com/first20hours/google-10000-english/master/google-10000-english.txt
wget -O src/unicode_confusables.txt https://www.unicode.org/Public/security/14.0.0/confusables.txt
false_positives:
cargo run --bin false_positive_finder --release --features censor,regex,indicatif,rayon,find_false_positives
replacements:
cargo run --bin replacement_finder --features find_replacements
add_profanity:
cargo run --bin add_profanity --features regex
widths:
cargo run --bin character_analyzer --release --features imageproc,image,rusttype,walkdir,rayon,unicode-width
test:
cargo test --release --features width,pii,serde -- --nocapture
test_curated:
cargo test --release --features width,pii,serde -- --nocapture curated
compare:
COMPARE=1 make test
table:
cargo test --release -- accuracy --nocapture
test_debug:
cargo test --features pii -- --nocapture
fuzz:
cargo fuzz run fuzz
test_customize:
cargo test --release --features customize --no-default-features