Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8900291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:04:19+00:00 2026-06-15T01:04:19+00:00

I am looking to write a basic profanity filter in a Rails based application.

  • 0

I am looking to write a basic profanity filter in a Rails based application. This will use a simply search and replace mechanism whenever the appropriate attribute gets submitted by a user. My question is, for those who have written these before, is there a CSV file or some database out there where a list of profanity words can be imported into my database? We are submitting the words that we will replace the profanities with on our own. We more or less need a database of profanities, racial slurs and anything that’s not exactly rated PG-13 to get triggered.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:04:20+00:00Added an answer on June 15, 2026 at 1:04 am

    As the Tin Man suggested, this problem is difficult, but it isn’t impossible. I’ve built a commercial profanity filter named CleanSpeak that handles everything mentioned above (leet speak, phonetics, language rules, whitelisting, etc). CleanSpeak is capable of filtering 20,000 messages per second on a low end server, so it is possible to build something that works well and performs well. I will mention that CleanSpeak is the result of about 3 years of on-going development though.

    There are a few things I tell everyone that is looking to try and tackle a language filter.

    1. Don’t use regular expressions unless you have a small list and don’t mind a lot of things getting through. Regular expressions are relatively slow overall and hard to manage.
    2. Determine if you want to handle conjugations, inflections and other language rules. These often add a considerable amount of time to the project.
    3. Decide what type of performance you need and whether or not you can make multiple passes on the String. The more passes you make the slow your filter will be.
    4. Understand the scunthrope and clbuttic problems and determine how you will handle these. This usually requires some form of language intelligence and whitelisting.
    5. Realize that whitespace has a different meaning now. You can’t use it as a word delimiter any more (b e c a u s e of this)
    6. Be careful with your handling of punctuation because it can be used to get around the filter (l.i.k.e th—is)
    7. Understand how people use ascii art and unicode to replace characters (/ = v – those are slashes). There are a lot of unicode characters that look like English characters and you will want to handle those appropriately.
    8. Understand that people make up new profanity all the time by smashing words together (likethis) and figure out if you want to handle that.

    You can search around StackOverflow for my comments on other threads as I might have more information on those threads that I’ve forgotten here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to write an application that will grab some basic information from the
I am looking to write application for iPhone which will be able to control
I'm looking to write a basic PHP file caching driver in a PHP application
I'm looking to understand how to do basic input/output to write a text based
I'm looking to write a Java program which will download a Java source file
I'm looking to write a sample application speaking to a POP3/SMTP server. Instead of
I'm looking to write a notification application where I'd like to provide popup notifications
I'm looking for some basic SIFT implementation in MATLAB. I need to write it
I'm looking to write a plugin for IE that will do a little parsing
I am looking for basic examples/tutorials on: How to write/compile libraries in C++ (

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.