Expected behavior
Inputting all the EnglishProfaneWord, I expected all of them to be censored.
Actual behavior
As you can see on this CodePen, not all of the words get censored.
Minimal reproducible example
import {
RegExpMatcher,
TextCensor,
englishDataset,
englishRecommendedTransformers,
keepStartCensorStrategy,
keepEndCensorStrategy,
asteriskCensorStrategy
} from 'obscenity'
const matcher = new RegExpMatcher({
...englishDataset.build(),
...englishRecommendedTransformers
})
const strategy = keepStartCensorStrategy(keepEndCensorStrategy(asteriskCensorStrategy()))
const censor = new TextCensor().setStrategy(strategy)
const words = 'abbo abeed africoon anal anus arabush arse ass bastard bestiality bitch blowjob boob boonga buttplug chingchong chink cock cuck cum cunt deepthroat dick dildo doggystyle double penetration ejaculate fag felch fellatio finger bang fisting fuck gangbang handjob hentai hooker incest jerk off jizz lubejob masturbate nigger orgasm orgy penis porn pussy rape retard scat semen sex slut tit tranny vagina whore'
const matches = matcher.getAllMatches(words)
console.log(censor.applyTo(words, matches))
Steps to reproduce
- View console
- Observe that not all words are censored
Additional context
Here is a less minimal CodePen with an input and output textarea: https://codepen.io/HatScripts/pen/NWJxEKW
Node.js version
N/A
Obscenity version
v0.1.4
Priority
Terms
Expected behavior
Inputting all the EnglishProfaneWord, I expected all of them to be censored.
Actual behavior
As you can see on this CodePen, not all of the words get censored.
Minimal reproducible example
Steps to reproduce
Additional context
Here is a less minimal CodePen with an input and output textarea: https://codepen.io/HatScripts/pen/NWJxEKW
Node.js version
N/A
Obscenity version
v0.1.4
Priority
Terms