george-profanity-filter
v1.0.3
Published
I have created this as a node package. Therefore, it can be used in a few ways.
Downloads
4
Readme
George's profanity filter
I have created this as a node package. Therefore, it can be used in a few ways.
Best way, i'd suggest, is to use RunKit https://npm.runkit.com/george-profanity-filter
It works with all examples in the specification. Here's a few colourful submissions of my own:
georgeProfanityFilter.filter(`
TURKEY
How could you do that? You turkey.
I hope there are enough turkeys to go around this christmas.
My neighbour, i hear, cooks up a mean turkey sandwich.
`);
georgeProfanityFilter.filter(`
pina colada
Too many Pina Coladas...
There is one too many Colada in this Pina.
Pina Colada for you. Pina Colada for you too.
`);
Footnotes:
- I couldn't get splice working hence the re-assign on line 22.