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
1
vote
3 answers

Regular Expression to find bad words in code comments

We have a large app (40,000+ lines of comments alone) that we are handing over to another company but need to make sure our code comments are kosher. My plan of finding inappropriate code comments is as follows... 1 - obtain a black list of profane…
HelloWorld
  • 4,251
  • 8
  • 36
  • 60
0
votes
1 answer

Profanity filter with fuzzy search in ruby rails

I am a rails newbie. I am using profanity_filter ruby gem to filter the foul words in my content application.. profanity_filter, if at all there is a foul word, lets say "foulword" it returns "f******d" If any user plays smart and types "foulwoord"…
gkolan
  • 1,571
  • 2
  • 20
  • 37
0
votes
0 answers

Profanity (bad words) filter for real-time chat, elasticsearch?

I need to create a room based chat app, that needs to support thousands of users at the same time. The problem is, client wants to filter bad words from the messages. Standard profanity filter libraries would not be a problem to use if the number of…
begota
  • 1
  • 1
0
votes
1 answer

How to filter bad words of textbox in ASP.NET MVC?

I have a requirement in which i wanna filter the textbox value, that is should remove the bad words entered by the user. Once the user enters the bad words and click on submit button, action is invoked. Somewhere in the model(any place) i should be…
nimi
  • 5,359
  • 16
  • 58
  • 90
0
votes
1 answer

how to fix the profanity_filter string cast error

I am trying to use ProfanityFilter in flutter, to filter bad words in a review content, which is a string. ProfanityFilter has a list of censored words, which I want to pass along with the list of swear words not included in a LDNOOBW list. However,…
han da
  • 95
  • 9
0
votes
0 answers

trying to create a profanity filter in a GUI using an array and a forloop in c#, but the forloop is messing up the remove method

this is my array, public String[] Swears = new string[22] {"bad words"} there are 22 swear words included in this, not gonna put them here. this works perfectly but doesnt seem to work in the forloop this is the text box that the user inputs their…
Pango661
  • 1
  • 2
0
votes
1 answer

String has been split using punctuation as delimiters; how to reassemble and put the punctuation back in?

Im implementing a profanity filter by using a Trie data structure. Every swear word is added to the Trie. When I have a string to remove profanities from, I explode the string by using punctuations and check every word with the Trie. If found I…
Shyam
  • 3
  • 2
0
votes
4 answers

Match star * character at end of word boundary \b

In building a lightweight tool that detects censored profanity usage, I noticed that detecting special characters at the end of a word boundary is quite difficult. Using a tuple of strings, I build a OR'd word boundary regular expression: import…
tester
  • 22,441
  • 25
  • 88
  • 128
0
votes
3 answers

Efficient alternative to nested For Loop

I am doing profanity filter. I have 2 for loops nested as shown below. Is there a better way of avoiding nested for loop and improve time complexity. boolean isProfane = false; final String phraseInLowerCase = phrase.toLowerCase(); for (int start =…
GoutiB
  • 3
  • 4
0
votes
1 answer

Adding a Profanity Filter to a simple Socket.IO app

I am making a simple socket.io app which you can see at https://backchannel.glitch.me. I am trying to add a relatively simple profanity filter for this site using RegExp, but I keep running into a problem- instead of displaying the message I want…
0
votes
0 answers

CKeditor 4 Disable Profanity filter

Hello and thank you for your time. I have an issue where partial of a phone number is being replaced with asterisks (8008). I've tried to add config.allowedContent multiple places but it hasn't fixed the issue. Is there a file somewhere with a…
Anthem127
  • 169
  • 2
  • 10
0
votes
1 answer

How can I filter out profanity in numeric IDs?

I want to use numeric IDs in a web application I am developing... However, as the ID is visible to users as a URL, I want to filter out profanity. Things like (I'll leave it to you to figure out what they…
0
votes
0 answers

API: Build a word profanity filter to identify abusive language

We want to create an API that takes an input and identifies if it's an abusive word or not. I read about word profanity filter but can't get a satisfactory solution to check this. There are a couple of challenges like: The word "SUCK" which is…
Sahil Sharma
  • 3,847
  • 6
  • 48
  • 98
0
votes
1 answer

Spanish profanity black-list

I've been tasked with implementing a blacklist-based profanity filter for a Rails app. I know there are a ton of issues with blacklist-based filtering, but the decision was made above my head. Challenge: I'm looking for a good list of Spanish…
Alterscape
  • 1,526
  • 1
  • 17
  • 34
0
votes
2 answers

jQuery.ProfanityFilter count

I am using jQuery.ProfanityFilter to find swear words in a page. The code is below: $divs.profanityFilter({ customSwears: ['drunk'], externalSwears: 'swearWords.json', filter: false, profaneText:…