profanity

How can I filter out profanity in base36 IDs?

此生再无相见时 提交于 2019-12-22 07:08:32
问题 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 sequence? 回答1: Well, rather than try to amass all the swear words possible, just filter out the vowels. That'll leave you plenty of permutations in the space. Admittedly, you've just cut down from base 36 to base 31, but base 31 numbers are valid

Remove profanity censor from Google Speech Recognition

筅森魡賤 提交于 2019-12-10 20:22:38
问题 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 the (mostly) correct words I say. However, it is replacing any profanity with '####'. How can I replace the '####' with the actual curse words? Just some additional information: I am using the todoroo SpeechToText library. The code for the request

How to implement decent “bad word filter”?

穿精又带淫゛_ 提交于 2019-12-10 12:37:40
问题 How can I create the good bad word chat filter? For example, let users not type Poop and send them warning. However it should also filter pooopppp , P00p, Po0p, P0o0o0op, (or whatever trick they try to use) etc. 回答1: You should implement some Machine Learning to filter that. I recommend this : Google Tensorflow. What you should do is to create the tensorflow engine, train them with bad words eg : Poop, P0op, Po0pp, etc... and after several training the engine will able to tell that Po0000p

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

耗尽温柔 提交于 2019-12-09 10:45:04
问题 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 automatically... for my web app, I want to be notified if a word I deem "bad" is used. Then I'll review it myself to make sure it's legit. An auto flagging system of sorts. 回答1: While your way works, it may be a bit time consuming. There is a wonderful

How can I filter out profanity in base36 IDs?

好久不见. 提交于 2019-12-05 08:48:34
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 sequence? x0n Well, rather than try to amass all the swear words possible, just filter out the vowels. That'll leave you plenty of permutations in the space. Admittedly, you've just cut down from base 36 to base 31, but base 31 numbers are valid base 36 numbers assuming the same symbol set (a-z0-9). IF that bothers you, replace the five vowels with

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

我的梦境 提交于 2019-12-04 15:40:25
问题 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 overlook something. 回答1: What a ******* good question. (I would have added this as a comment, but I'm a ****) Update Ok, here is something that might be a bit more useful: http://james.newtonking.com/archive/2009/07/03/simple-net-profanity-filter.aspx

Javascript profanity match NOT replace

醉酒当歌 提交于 2019-12-04 06:13:48
问题 I am building a very basic profanity filter that I only want to apply on some fields on my application (fullName, userDescription) on the serverside . Does anyone have experience with a profanity filter in production? I only want it to: 'ass hello' <- match 'asster' <- NOT match Below is my current code but it returns true and false on in succession for some reason. var badWords = [ 'ass', 'whore', 'slut' ] , check = new Regexp(badWords.join('|'), 'gi'); function filterString(string) { return

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

梦想的初衷 提交于 2019-12-03 09:48:40
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 overlook something. What a ******* good question. (I would have added this as a comment, but I'm a ****) Update Ok, here is something that might be a bit more useful: http://james.newtonking.com/archive/2009/07/03/simple-net-profanity-filter.aspx The above describes a simple swear filter from a list of words using regular expressions. You could download

Javascript profanity match NOT replace

天大地大妈咪最大 提交于 2019-12-02 09:00:36
I am building a very basic profanity filter that I only want to apply on some fields on my application (fullName, userDescription) on the serverside . Does anyone have experience with a profanity filter in production? I only want it to: 'ass hello' <- match 'asster' <- NOT match Below is my current code but it returns true and false on in succession for some reason. var badWords = [ 'ass', 'whore', 'slut' ] , check = new Regexp(badWords.join('|'), 'gi'); function filterString(string) { return check.test(string); } filterString('ass'); // Returns true / false in succession. How can I fix this

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

Deadly 提交于 2019-11-30 10:29:35
问题 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 specific letters (e.g. s†å©køv€rƒ|øw). I expect I’ll have to expand this list over time to cover people’s creativity, but is there a list floating around anywhere on the internet that I could use as a starting point? 回答1: This is probably both