By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,253 Members | 1,680 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,253 IT Pros & Developers. It's quick & easy.

Procedure searching for inappropriate language

P: n/a
Does anyone have or know where I can get a some code that will check a
TextBox for inappropriate language.

At the moment, we need to manually check submissions for language before
posting. This takes a lot of time and resources and in some cases a lot of
time before a submission is actually made live.

Thanks,

Tom
Jul 9 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Jul 9, 12:53 pm, "tshad" <t...@home.comwrote:
Does anyone have or know where I can get a some code that will check a
TextBox for inappropriate language.

At the moment, we need to manually check submissions for language before
posting. This takes a lot of time and resources and in some cases a lot of
time before a submission is actually made live.

Thanks,

Tom
Webform I'm guessing?

If so you could use some client-side javascript to do the search the
textbox on it's onchange event (or possibly Asp.Net's regex validator
would work?). Javascript exposes a RegExp object that you could use to
quickly do a search for foul language. If you prefer server-side
processing, you could use AJAX to send just the textbox to the server
for processing.

Thanks,

Seth Rowe

Jul 9 '07 #2

P: n/a
On Mon, 9 Jul 2007 09:53:35 -0700, "tshad" <t@home.comwrote:
>Does anyone have or know where I can get a some code that will check a
TextBox for inappropriate language.

At the moment, we need to manually check submissions for language before
posting. This takes a lot of time and resources and in some cases a lot of
time before a submission is actually made live.

Thanks,

Tom
You need to search/Google for "badword" - though most solutions
are likely to be in the php domain.

There is a discussion about it here:
http://www.webhostingtalk.com/showthread.php?t=453361

and a .Net suggestion here:
http://www.experts-exchange.com/Prog..._20704274.html

Seems to be difficult finding a (long) list of words.

How about letting the community flag the inappropriate posts/words?
No dictionary is ever going 2 catch everyth1ng. And you are going to
get false positives as well.

Regards,

Joergen Bech

Jul 9 '07 #3

P: n/a
"tshad" <t@home.comwrote in news:OU**************@TK2MSFTNGP04.phx.gbl:
Does anyone have or know where I can get a some code that will check a
TextBox for inappropriate language.
You can do this with regular expressions combined with a dictionary file,
but in general they're easy to bypass.

If you want a 100% bad word free site, you'll have to resort to some manual
filtering :-(
Jul 9 '07 #4

P: n/a
"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
On Jul 9, 12:53 pm, "tshad" <t...@home.comwrote:
>Does anyone have or know where I can get a some code that will check a
TextBox for inappropriate language.

At the moment, we need to manually check submissions for language before
posting. This takes a lot of time and resources and in some cases a lot
of
time before a submission is actually made live.

Thanks,

Tom

Webform I'm guessing?

If so you could use some client-side javascript to do the search the
textbox on it's onchange event (or possibly Asp.Net's regex validator
would work?). Javascript exposes a RegExp object that you could use to
quickly do a search for foul language. If you prefer server-side
processing, you could use AJAX to send just the textbox to the server
for processing.
That's what I am trying to do.

But I was hoping there was something out there already that does this with
an updateable list that I can update without touching the code.

Thanks,

Tom
>
Thanks,

Seth Rowe

Jul 10 '07 #5

P: n/a

"Joergen Bech @ post1.tele.dk>" <jbech<NOSPAMNOSPAMwrote in message
news:8r********************************@4ax.com...
On Mon, 9 Jul 2007 09:53:35 -0700, "tshad" <t@home.comwrote:
>>Does anyone have or know where I can get a some code that will check a
TextBox for inappropriate language.

At the moment, we need to manually check submissions for language before
posting. This takes a lot of time and resources and in some cases a lot
of
time before a submission is actually made live.

Thanks,

Tom

You need to search/Google for "badword" - though most solutions
are likely to be in the php domain.

There is a discussion about it here:
http://www.webhostingtalk.com/showthread.php?t=453361

and a .Net suggestion here:
http://www.experts-exchange.com/Prog..._20704274.html

Seems to be difficult finding a (long) list of words.

How about letting the community flag the inappropriate posts/words?
No dictionary is ever going 2 catch everyth1ng. And you are going to
get false positives as well.
In this case, the community would not be viable. I agree no dictionary is
going to catch anything and I don't expect much problems here as there will
be credible companies that will use our site and I expect that there will be
an odd employee that will try to mess around and this is the one we want to
catch and just pass it on to the company managers to deal with (or we would
ban the company).

Thanks,

Tom
>
Regards,

Joergen Bech

Jul 10 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.