Skip to content

Commit

Permalink
fix: update README with removeWords example
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruk3 committed Dec 22, 2020
1 parent 5fd8451 commit d266769
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,7 @@ filter.addWords(['OTHER_BAD_WORD'], []) // Uses the label NO (NONE) as the defau

### Remove words from the set of obscenity words
```js
const wordsToRemove = ['ቅምጥ', 'ግማታም'];
filter.removeWords(toRemove);
filter.isPure('ቅምጥ') // false
filter.removeWords(['ቅምጥ']);
filter.isPure('ቅምጥ') // true
```

0 comments on commit d266769

Please sign in to comment.