Discuss Scratch

XXSHINY_SYLVEONXX
Scratcher
53 posts

How do I make a bad word detecter

I need help with a bad word detector but there are so much bad words how do people list them all unless it's a different code.
Catscratcher07
Scratcher
1000+ posts

How do I make a bad word detecter

If this is a could chat project, if there is a need for a filter the project would not be allowed in the first place, please see the policy on cloud chat projects

If what you are filtering isn't being transmitted over cloud, you have no reason to filter it.
XXSHINY_SYLVEONXX
Scratcher
53 posts

How do I make a bad word detecter

Catscratcher07 wrote:

If this is a could chat project, if there is a need for a filter the project would not be allowed in the first place, please see the policy on cloud chat projects

If what you are filtering isn't being transmitted over cloud, you have no reason to filter it.
What's a cloud variable
DanglyLegs
Scratcher
95 posts

How do I make a bad word detecter

XXSHINY_SYLVEONXX wrote:

Catscratcher07 wrote:

If this is a could chat project, if there is a need for a filter the project would not be allowed in the first place, please see the policy on cloud chat projects

If what you are filtering isn't being transmitted over cloud, you have no reason to filter it.
What's a cloud variable
Cloud variables are special number-only variables that are the same across all projects. They're what allow online multiplayer projects to be possible.

Could you please explain what your project is that you need the filter for?
Catscratcher07
Scratcher
1000+ posts

How do I make a bad word detecter

DanglyLegs wrote:

XXSHINY_SYLVEONXX wrote:

Catscratcher07 wrote:

If this is a could chat project, if there is a need for a filter the project would not be allowed in the first place, please see the policy on cloud chat projects

If what you are filtering isn't being transmitted over cloud, you have no reason to filter it.
What's a cloud variable
Cloud variables are special number-only variables that are the same across all projects. They're what allow online multiplayer projects to be possible.

Could you: please explain what your project is that you need the filter for?
Correction cloud variables are the same across all clients playing a given project and that are saved in the cloud.
deck26
Scratcher
1000+ posts

How do I make a bad word detecter

You can't detect bad words basically but why do you want to? Chat projects are not allowed other that using a defined list of acceptable phrases (ie not just combining words that individually are OK) so there should never be a need for this.
DanglyLegs
Scratcher
95 posts

How do I make a bad word detecter

Catscratcher07 wrote:

~snip~
Correction cloud variables are the same across all clients playing a given project and that are saved in the cloud.
Sorry, by “all projects” I meant everyone who has that project open.
1nteger_
Scratcher
42 posts

How do I make a bad word detecter

If this isn‘t a chat project, you could make a bad word detector by doing this: (Using the translate extension)

if <(translate (phrase) to (English v))=()> then // leave the input after translate blank
bad word detected in text :: grey
else
no bad word :: grey
end

You can also input multiple words.

This works because it automatically blocks bad words from being translated.
Please note that translate is really slow, it might take 1-2 seconds for it to respond.

But if you are making a chat project, just use a pre-determined list, as deck26 said.
XXSHINY_SYLVEONXX
Scratcher
53 posts

How do I make a bad word detecter

1nteger_ wrote:

If this isn‘t a chat project, you could make a bad word detector by doing this: (Using the translate extension)

if <(translate (phrase) to (English v))=()> then // leave the input after translate blank
bad word detected in text :: grey
else
no bad word :: grey
end

You can also input multiple words.

This works because it automatically blocks bad words from being translated.
Please note that translate is really slow, it might take 1-2 seconds for it to respond.

But if you are making a chat project, just use a pre-determined list, as deck26 said.
Yeah that was what I meant
1234not123abc
Scratcher
100+ posts

How do I make a bad word detecter

you could try and find a list of bad words on the internet and copy and paste into a variable and then put that variable into a list with an auto variable to list
DanglyLegs
Scratcher
95 posts

How do I make a bad word detecter

1234not123abc wrote:

you could try and find a list of bad words on the internet and copy and paste into a variable and then put that variable into a list with an auto variable to list
If you do this, your project will not be allowed on Scratch because it contains inappropriate language.
coolteamaccount
Scratcher
43 posts

How do I make a bad word detecter

The translate block returns nothing if the output is a bad word, try that

Powered by DjangoBB