This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-08-09 17:52:15

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Scratch - Censoring Strings

I have created a Scratch project to censor any bad words the user inputs without a trace of a bad word in the actual project.  big_smile

http://scratch.mit.edu/projects/MathWizz/2722305

There is a major drawback though. It only censors exact words. If you enter a bad word with any letter attached (without a space,) it will not censor it.

What do you think?  smile


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#2 2012-08-10 02:13:55

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Scratch - Censoring Strings

MathWizz wrote:

I have created a Scratch project to censor any bad words the user inputs without a trace of a bad word in the actual project.  big_smile

http://scratch.mit.edu/projects/MathWizz/2722305

There is a major drawback though. It only censors exact words. If you enter a bad word with any letter attached (without a space,) it will not censor it.

What do you think?  smile

Are the bad words hashed?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#3 2012-08-10 09:35:38

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Scratch - Censoring Strings

nathanprocks wrote:

MathWizz wrote:

I have created a Scratch project to censor any bad words the user inputs without a trace of a bad word in the actual project.  big_smile

http://scratch.mit.edu/projects/MathWizz/2722305

There is a major drawback though. It only censors exact words. If you enter a bad word with any letter attached (without a space,) it will not censor it.

What do you think?  smile

Are the bad words hashed?

Exactly.  tongue


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#4 2012-08-10 09:46:53

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch - Censoring Strings

So it takes the individual words and loops through the list, I guess.
Then, why don't you try making a (obviously not so secure but who cares) hash that instead replaces the letters with something else? Then you could go through letter by letter! (until Scratch adds X contains X)

EDIT
Actually, that doesn't make sense programming wise, but you understand the concept of hashing by letter instead, I hope?  tongue

Last edited by LS97 (2012-08-10 09:47:40)

Offline

 

#5 2012-08-10 18:55:51

nama
Scratcher
Registered: 2010-06-06
Posts: 1000+

Re: Scratch - Censoring Strings

There are a lot of ones it doesn't know.


You say goodbye to 1.4, I say hello to 2.0.

Offline

 

#6 2012-08-10 19:07:58

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch - Censoring Strings

It doesn't censor any of my favourites :'(


Posts: 20000 - Show all posts

Offline

 

#7 2012-08-10 19:09:55

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Scratch - Censoring Strings

The main problem I see are variations (esp. gerunds).  Nonetheless, a cool way to use hashing!


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer