This is yet another crazy idea that I have come up with, but which I have no idea if anyone ever considered: a family mode plugin. You know, in case of falling f-bombs (or anything else that your children probably don't need to hear or read before a certain age). And more specifically on the moment it occurs, so that one doesn't have to write things twice for the same scene where the word slips out within the existing dialogue.
Any ideas?
You kind of missed the point. I actually intend for it to be for this one specific purpose so a more general plugin is not what I am going for. Not only that, but after all the recent theft I really can't use any of the Yanfly stuff as a base for this due to recent incidence that forced a massive change in terms (and also seeing that most of it is paid content now because of it which is a serious concern for ethical practices, not to mention that I obviously don't want to be the next Soul, Hanzo etc. after everything I have already done here).
Bottom line is that I specifically intend to focus on a specific set of standard jargon to black out (in this case being f-bombs, the n-word and other sensitive phrases and quips).
Can't say I missed your intention as you posted this in JS requests, so its easy to assume that you are looking for a JS that has already been done, instead of something you want to do yourself XD
But if you are planning to do a plugin that crosses out or blocks out a word in the message box itself, I haven't seen anything like that before. So you could do it cause I can see people using it for some specific quirky stuff too like blocking out 'spoiler' text till its revealed or so.
one way to do this would be to use a multilanguage plugin, especially one that uses external text files like Iavra's.
It will require you to place the entire text in that external format (which means it's better to start with it as it's much more work to convert an existing game into that format), but then you can make a copy of the entire text as a "new language" named "safe english" and edit all texts that contain swearwords or whatever.
your original idea can also work (and is probably easier if the game already exists with a lot of text), but it has a big restriction: the list of words to exchange or remove will always be limited, and the more such words you have the slower the message system will get.
Basically you would have to get the forbidden words replaced in the same way as textcodes exchange the code, but without a specific key letter like the \ of the textcodes, and that will require much more processing power to do.