bryanashley / texthelper.js

A javascript library of useful text helper functions
12 stars 0 forks source link

word censor #2

Closed mikebonds closed 12 years ago

mikebonds commented 12 years ago

This could be very handy. A word censor method could accept a sentence, a list of words to be censored, and the replacement text for censored words.

bryanashley commented 12 years ago

This is a good idea mike! Ill start on this now! We need to also make it so they can add words to the blacklist.

mikebonds commented 12 years ago

Yeah, we should allow the user to create a blacklist. When the word censor is used, they can specify words to include along side the blacklist. Or we can have an optional param that allows them to specify if the new words should be excluded from the blacklist.