Questions tagged [profanity]

A sacrilegious word, or more generally an offensive word. In the SO context, a word that may be filtered out of forum postings etc.

Profanity is something that is profane, a synonym of sacrilegious. From the Latin profānus: outside the temple, from pro- + fānum temple

64 questions
55
votes
5 answers

Is there a list of characters that look similar to English letters?

I’m having a crack at profanity filtering for a web forum written in Python. As part of that, I’m attempting to write a function that takes a word, and returns all possible mock spellings of that word that use visually similar characters in place of…
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
53
votes
9 answers

"bad words" filter

Not very technical, but... I have to implement a bad words filter in a new site we are developing. So I need a "good" bad words list to feed my db with... any hint / direction? Looking around with google I found this one, and it's a start, but…
ila
  • 4,706
  • 7
  • 37
  • 41
36
votes
3 answers

Regular expression preg_quote symbols are not detected

I have a dictionary of swear words in the database, and the following works great preg_match_all("/\b".$f."(?:ing|er|es|s)?\b/si",$t,$m,PREG_SET_ORDER); $t is the input text and simply, $f = preg_quote("punk"); "punk" is from the database…
Prof
  • 2,898
  • 1
  • 21
  • 38
34
votes
6 answers

What’s a good Python profanity filter library?

Like https://stackoverflow.com/questions/1521646/best-profanity-filter, but for Python — and I’m looking for libraries I can run and control myself locally, as opposed to web services. (And whilst it’s always great to hear your fundamental…
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
24
votes
2 answers

any open-source/free .NET profanity filter for website?

Are you aware of any open-source/free .NET profanity filter (ASP.NET MVC to be precise)? I searched google but I couldn't come up with any. I would like to avoid implementing it entirely on my own, if possible. It is so easy to make mistake or…
TPR
  • 2,567
  • 10
  • 41
  • 65
9
votes
3 answers

Profanity Filter using a Regular Expression (list of 100 words)

What is the correct way to strip profane words from a string given: 1) I have a list of 100 words to look for in an array of strings. 2) What is the correct way to handle partial words? How do most people handle this? For example the word mass. Then…
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
9
votes
3 answers

What's the best way to parse a string for "bad" words in C#?

I'm thinking of something like: foreach (var word in paragraph.split(' ')) { if (badWordArray.Contains(word) { // do something about it } } but I'm sure there's a better way. Thanks in advance! UPDATE I'm not looking to remove obscenities…
Chaddeus
  • 13,134
  • 29
  • 104
  • 162
6
votes
3 answers

Design pattern for blocking undesirable content

Last year I was working on a Christmas project which allowed customers to send emails to each other with a 256 character free-text field for their Christmas request. The project worked by searching the (very-large) product database for suggest…
Dan Blows
  • 20,846
  • 10
  • 65
  • 96
5
votes
2 answers

Regular expression for replacing profanity words in a string

I'm trying to replace a set of words in a text string. Now I have a loop, which does not perform well: function clearProfanity(s) { var profanity = ['ass', 'bottom', 'damn', 'shit']; for (var i=0; i < profanity.length; i++) { s =…
Don-Joy
  • 88
  • 1
  • 6
5
votes
2 answers

How can I filter out profanity in base36 IDs?

I want to use base36 in a web application I am developing... but as the id is visible to users as a url, I want to filter out profanity. Has anyone solved this? Or is this even a real problem? Does it make sense just to skip numbers in my database…
Chris
  • 591
  • 1
  • 5
  • 10
4
votes
2 answers

Is it possible to filter flickr API calls for safe pictures?

I'm working on a app that collects random pictures from flickr to use as placeholder images. I just had an incident with a client where one of the placeholders images was too explicit and now I think it is better to filter the results. I know flickr…
sbaechler
  • 1,329
  • 14
  • 21
4
votes
0 answers

word profanity match in php

Possible Duplicate: How do you implement a good profanity filter? i need to build a script that remove bad words from someone post or username or anythong else they submit to my site. i have a small script that already remove them but it also cut…
GuitarMaster
  • 583
  • 3
  • 10
4
votes
4 answers

Basic Profanity Filter in Objective C for iPhone

How have you like minded individuals tackled the basic challenge of filtering profanity, obviously one can't possibly tackle every scenario but it would be nice to have one at the most basic level as a first line of defense. In Obj-c I've got…
David van Dugteren
  • 3,879
  • 9
  • 33
  • 48
3
votes
2 answers

How do I prevent users from entering profanities?

Possible Duplicate: How do you implement a good profanity filter? I have to take a city name from users as input, but I don't want to accept any profanities. Can anyone tell me how I can keep users from typing such words?
Lokesh Paunikar
  • 1,679
  • 5
  • 21
  • 26
3
votes
1 answer

How to set height of roster in xmonad withIM layout

I am using the withIM layout in xmonad and I am using conky and dzen, which results in the roster overlaying the conky/dzen bar, while other windows are not overlapping. I am using profanity within st as IM. I searched a while for a solution to…
GiftZwergrapper
  • 2,602
  • 2
  • 20
  • 40
1
2 3 4 5