Jump to content

Language Filter


Recommended Posts

Howdy folks, 

as an admin and moderator on one server, I recently faced people who used curse words in every sentence. I was looking for a mod that would filter vulgar language for everybody on server. However, I couldn't find anything that would provide such a thing. So I made a simple script that removes vulgar language. I hope it will be useful for somebody!

Available on Steam workshop.

Below is the list of regular expressions which are replaced with !@#&$. I put there some English, Russian and Polish swear words. Also, I added far right/left propaganda words. Maybe some script parameters would be graceful in the future

Spoiler

 


-- List of regular expressions 
LANG_CURSES = {
                    "mother ?****",
                    "****er",
                    "**** ?off",
                    "**** ?you",
                    "**** u",
                    "****",
                    "suc[ck].*dic[ck]",
                    "dic[ck] ?head",
                    "dic[ck]",
                    "*******",
                    "******",
                    "*****",
                    "******",
                    "*****",
                    "*****",
                    "*******",
                    "****",
                    "*******",
                    "****",
                    "******",
                    "****",
                    "****",
                    "*****",
                    "slag",
                    -- No propaganda
                    "nazi",
                    "comrade",
                    "hitler",
                    "stalin",
                    -- Russian
                    "cyka",
                    "blyat",
                    "сука",
                    "блять",
                    "товарищ", 
                    -- Slavic
                    "kurwa",
                    "kurva",
                }

 

I didn't expect that Klei forum will have its own filter, but they didn't implement that in the game. Seriously, what the hack? :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...