Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement a profanity filter in RoR?

I am developing a social web application with RoR. I realized that it's probably a good idea to prevent users from inserting rude or profane language into comments or posts.

Do you know any solution or plug-in that help me prevent something like this?

like image 986
Teerasej Avatar asked Feb 24 '26 06:02

Teerasej


1 Answers

The correct term you're looking for is a profanity filter (edited). Here are some previous discussions on this topic:

  • How do you implement a good profanity filter?
  • "bad words" filter
  • https://stackoverflow.com/questions/259610/profanity-filtering-profanity-dictionaries-scunthorpe-problem-profanity-generat
like image 196
ryeguy Avatar answered Feb 26 '26 21:02

ryeguy