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
3
votes
1 answer

Remove profanity censor from Google Speech Recognition

I am trying to convert speech to text in an iOS application using Google's Speech to Text API. I am simply sending some audio data to the URL "https://www.google.com/speech-api/v1/recognize?xjerr=1&client=chromium&lang=en-US" and it is returning me…
2
votes
4 answers

Regex - Match ( only ) words with mixed chars

i'm writing my anti spam/badwors filter and i need if is possible, to match (detect) only words formed by mixed characters like: fr1&nd$ and not friends is this possible with regex!? best regards!
Luca Filosofi
  • 30,905
  • 9
  • 70
  • 77
2
votes
1 answer

How to check if a string contains a word from a list

I want the user to input lyrics to the program (this will later be extended to searching a website, but i dont currently want help with that) and the program will tell me if the inputted info contains a word from a list. banned_words =…
James Mann
  • 27
  • 3
2
votes
2 answers

OpenFire Content Filter using REGEX

Hi i am currently implementing the following regex to prevent user submitting contents which contains profanity as describe within the regex (?i)(pecan|tie|shirt|hole|ontology|meme|pelagic|cock|duck|slot|anjing…
Jeremy
  • 2,516
  • 8
  • 46
  • 80
1
vote
2 answers

Profanity checking for promotional codes

I have a slightly unusual profanity-related question. Now we're used to dealing with profanity-filtering of user-generated content — any method is imperfect, but products like CleanSpeak and WebPurify do a good-enough job. The problem we have at the…
Owen Blacker
  • 4,117
  • 2
  • 33
  • 70
1
vote
0 answers

How to remove R rated movies from TheMovieDatabase API

i am working with theMovieDatabase api I want to get the movies by name, luckily the functionality for that is working perfectly but now i am trying to add profanity to the data that i get back, some of the data is clearly 18+, but the adult…
Alucard
  • 58
  • 5
1
vote
1 answer

Audio profanity filter using python

I am trying to write a python code in which users inputs a video file and program will mute/beep the curse/bad words in it and outputs a filtered video file, basically a profanity filter. Firstly, I converted the video file into .wav format and then…
1
vote
1 answer

profanity check error cannot import name 'joblib' from 'sklearn.externals'

I have a env that I just Installed profanity_check but when I run my code I get a error: Traceback (most recent call last): File "bot.py", line 1, in from profanity_check import predict, predict_prob File…
Ariya Mirzaei
  • 95
  • 1
  • 10
1
vote
1 answer

Filter out Bad Words From a Text File In Python

I am wanting to read the contents of a text file and filter out the bad word from it. {UPDATED} So I updated my python file after what you told me but right now I am getting a no module error. When I run pip3 install profanity_filter it gives me a…
Omar
  • 53
  • 7
1
vote
3 answers

check if value is in array

This is probably v.easy but my php is very rusty. I need to implement a bad word filter...I currently have this: if(!in_array($_POST['Name'],$profanities)) { echo $row['Name']; } ...and an profanities array with bad words in it. Problem is I want…
Mike Rifgin
  • 10,409
  • 21
  • 75
  • 111
1
vote
1 answer

CertificateError: hostname 'www.wdylike.appspot.com' doesn't match

I am doing the udacity course on learning python. Basically, this project is supposed to check for profanity in a file. We use the website "https://wdylike.appspot.com/?q=" to do this. The website checks for profanity and prints a Boolean value if…
Karrsen B
  • 67
  • 1
  • 7
1
vote
2 answers

How to censor/unlock content in a Kid-safe (4+) app?

I'm working on an unabridged dictionary app. My goal is to release a 4+ rated app which schools can freely purchase. The nature of language is that some words are profane, disparaging, vulgar, or otherwise offensive. I have carefully identified…
some ideas
  • 64
  • 3
  • 14
1
vote
3 answers

How to require full (not partial) match with regex for a bad word filter?

I'm writing a very basic commenting system and want to implement a simple, efficient bad words filter. I'm aware of the problems associated with bad word filters and realize it's basically impossible to write one that keeps misspellings and…
Nate
  • 26,164
  • 34
  • 130
  • 214
1
vote
4 answers

Regex for catching word with special characters between letters

I am new to regex, I'm programming an advanced profanity filter for a commenting feature (in C#). Just to save time, I know that all filters can be fooled, no matter how good they are, you don't have to tell me that. I'm just trying to make it a bit…
Shaggydog
  • 3,456
  • 7
  • 33
  • 50
1
vote
1 answer

unescape not working in profanity filter

I am trying to make a profanity filter with javascript. I was successful but when I encode the bad words I can't get it to work. I have been working on this for two days straight. I have tried to unescape the code in a variable and then use the…
Allison
  • 89
  • 7