Releases: FelipeLuz/dotnet-bad-word-detector-and-filter
Releases · FelipeLuz/dotnet-bad-word-detector-and-filter
.NET Bad Word Detector – Release Notes (v2.0.0)
What’s New
Multi-Language Support
-
Added support for Portuguese and Spanish, in addition to English.
-
Load one or all supported languages:
var detector = new ProfanityDetector(); // English only (default) var detectorAll = new ProfanityDetector(allLocales: true); // English, Spanish, Portuguese
Phrase Detection
- Added
IsPhraseProfane(string phrase)
to detect offensive words within phrases.
Probability Scores
-
Added:
GetProfanityProbability(string word)
GetPhraseProfanityProbability(string phrase)
to get a confidence score (0 to 1) for offensive content.
Profanity Masking
- Added
MaskProfanity(string phrase, char maskChar = '*')
to mask offensive words in a phrase.