I just started working on the
Voting App project, and I noticed that the sample app at https://fcc-voting-arthow4n.herokuapp.com/ has some polls that contain racist, homophobic, or profane language.
That got me wondering how to deal with displaying offensive user input. I believe that some sites use some kind of filtering to replace certain words with asterisks or other obfuscations, and I found several profanity-filter modules on npm.
But I think I would rather implement a type of community moderation where users could
downvote polls that are inappropriate. I suppose each poll would have a
downvoteCount field in the database, and maybe after 3 downvotes the poll would be automatically deleted? If anyone has implemented this type of functionality before, what libraries or modules were useful, and what were the tricky parts?