Talk:Scripts:BadWords

From BF2 Technical Information Wiki
Revision as of 12:36, 5 August 2005 by Woody (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • Normally I dislike playing on servers with word censors. In your case however I see how it is important that you stop people from using bad language, and this seems like a really nifty little script. Like Woody said, you have to be careful with your choice of bad words or you will punish people for nothing. One such thing that comes to mind is if you put rape on the bad word list, then words like scrape and grape would be flagged. --King of Camelot 12:06, 4 Aug 2005 (MDT)
  • I strongly recommend getting familar with the re extension for python so that you can use regular expressions to filter words. With RegEx, given KoC's example above, you can certainly say to only censor the word rape, and not scrape or grape. RegEx almost always come at the cost of customizability, though, since you have to know at least a little about regular expressions to add or remove words. Something that might be good is a function that takes a list of words and generates a regular expression string based on the list members. If there's any interest, I'll gladly lend a hand --dst 22:20, 4 Aug 2005 (MDT)

Thanks for the suggestions! I've added comments into the main page (a) suggesting that server operators who use this script ought to warn players about it, and (b) suggesting that it wouldn't be too hard to extend the script to use regexes, if you wanted to. (It's a good idea, but really isn't necessary in my case--I have a short word list that I've used for a couple of years with Desert Combat that I'm happy with, that has already had most of the rape/grape problems tuned out of it). --Woody 14:36, 5 Aug 2005 (MDT)

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox