Skip to content

Commit

Permalink
feat(english-preset): blacklist 'shit' by default
Browse files Browse the repository at this point in the history
Fixes #47. Thanks to HatScripts for the patch.
  • Loading branch information
jo3-l committed Jan 5, 2024
1 parent 718da8a commit b0d90aa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/preset/english.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,16 @@ export const englishDataset = new DataSet<{ originalWord: EnglishProfaneWord }>(
.addPattern(pattern`|s[s]e[e]x|`)
.addPattern(pattern`|s[s]e[e]xy|`),
)
.addPhrase((phrase) =>
phrase
.setMetadata({ originalWord: 'shit' })
.addPattern(pattern`shit`)
.addWhitelistedTerm('s hit')
.addWhitelistedTerm('sh it')
.addWhitelistedTerm('shi t')
.addWhitelistedTerm('shitake')
.addWhitelistedTerm('mishit'),
)
.addPhrase((phrase) =>
phrase
.setMetadata({ originalWord: 'tit' })
Expand Down Expand Up @@ -428,6 +438,7 @@ export type EnglishProfaneWord =
| 'scat'
| 'semen'
| 'sex'
| 'shit'
| 'slut'
| 'tit'
| 'tranny'
Expand Down

0 comments on commit b0d90aa

Please sign in to comment.