Generating random text that the filter agrees with?

The filter is giving me trouble when trying to generate random text.
It took 41 attempts to generate a SINGLE five character string that wasn’t filtered.

Any suggestions to improve this?
I’ve tried adding numbers into the mix - no change.

1 Like

You only need to use string filtration if you’re broadcasting or using input from a client directly.

correct me if I’m wrong

Ah, I guess that makes sense actually

What if you tried generating a random code using only numbers? If that was the case, I would assume it’d be fine to bypass having to use string filtration.

Nonetheless, Roblox’s chat filter is absolute garbage and needs to be improved. It literally won’t filter certain bad words at times and yet, filters everyday conversation words…

1 Like

I considered that, but generating only numbers is not ideal for the project.
And yeah, I completely agree.

1 Like

Remove vowels and ignore the filter maybe? This should eliminate the chance of inappropriate words forming because well words need vowels. And you still have 21^5 permutations.

1 Like

Personally I would create a table of around 100 randomly generated words that you’ve been through to make sure they don’t contain any inappropriate text, and have the script pick from that. You can’t get moderated if your script has a 0% chance of displaying rule-breaking content, the same way how you don’t have to filter text you put on signs if you do it yourself and it isn’t user-generated.

You could still end up with results like FCKNG. Nice idea though.

This is what I was considering, but it’s not the solution I hope for.
Going to implement it as a backup.

Tried using search modules? i.e. fuzzy search? Add a whole list of slurs and insults but a problem is that you gotta insert it yourself. I think you still have to filter it at the end of the day. Maybe try storing approved words that the filter is fine with into a datastore.

I was considering this option too - the only problem with this is that it takes a while to get the first string.

You should generate some strings as soon as the script starts running I guess.

Create a big list of random text, check for any inappropriate content generated, then save them into a table in your script and pull from that randomly, no need to filter it.

1 Like

You should have a table in the script and make the script add a filtered random word into it until the table length reaches, for example, 100, and whenever you use a word from it, remove it from the table, assuming that you don’t want the words to repeat.