codapill_CensorText [MV + MZ]

Censor Text v1.0
codapill
​

Introduction
Simple plugin that allows you to censor certain words for whatever reason in your game. Those selected words will instead display random symbols, or a string of your choice.

Features
Provide a list of terms in the plugin's parameters and those words will be censored if a certain global switch is turned ON.

Screenshots
kidmode.png


How to Use
  1. Reserve a switch for Censor Mode in the parameters. You'll need to switch it ON in the game for the plugin to work.
  2. Fill in the 'Words to Censor' list. Now, when the censor switch is set to ON, any words declared in that list will be censored.
  3. Replace the 'Censored Replacement' field with whatever you wish to have display instead of the censored words.
Note: Words are not case-sensitive.
Ex: 'Raspberries' would also cover 'raspberries', 'rAsPbErRiEs' etc. Mmm, raspberries.

Development

This has been tested in RMMV and RMMZ but could need further testing, so please notify me of any issues in this thread. If I add any other features to this plugin, they'll be updated in the Github link.

Download
Github

License

This plugin is released under the MIT License.
Would you be willing to consider changing from a switch to an item in the options menu? Something like a "cleanup mode" option rather than a control switch. Other than that I have been interested in something like this for quite some time.
.
I'd inform users of your plugin of the Clbuttic Mistake before they get too zealous.
If you're like me and have no idea what this guy is on about:

Clbuttic Mistake is when a program that is meant to censor a word accidentally censors spellings that appear like a censored word in the middle of an existing word.
"Clbuttic Mistake" is meant to be clASSic mistake, but because in the middle of the word classic is a naughty-no-no word, the filter replaces the naughty-no-no word with a more appropriate word: butt. This unfortunately renders the original word - which was not a naughty-no-no word - illegible or otherwise (unintentionally) quite humorous.

For the record, if you want to help people improve their stuff, it always helps to clarify points, especially when referencing obscure things. It's better to assume they don't know then assume they do :LZSsmile:
@BreakerZero - Hey, I can certainly look into that. Will probably be this week.

@RianQuenlin - I appreciate that, will look at the regex and see what I can do first.

@TheAM-Dol - I had no idea! Learn something new every day :LZSsmile:Thank you
OK so I pulled up Google and did some research today, which led me to this:


Give it a try and see what happens.

Original thread: https://forums.rpgmakerweb.com/threads/codapill_censortext-mv-mz.149926/