BAD WORD FILTER

Help with Setup, Hardware, Performance or other Issues...Or just pimp your rig.
Post Reply
brad2901
Private First Class
Private First Class
Posts: 223
Joined: Sun Sep 12, 2004 9:17 am
Location: UK
Contact:

BAD WORD FILTER

Post by brad2901 »

Please could somebody tell me what i need to put in the file along with the bad words. Also, what is used to seperate the words? :?:
User avatar
toaster
Private First Class
Private First Class
Posts: 457
Joined: Sat Feb 21, 2004 4:44 pm

Re: BAD WORD FILTER

Post by toaster »

brad2901 wrote:Please could somebody tell me what i need to put in the file along with the bad words. Also, what is used to seperate the words? :?:
Be sure to put "brad" in there :)
-toaster
"So there I was, all alone, facing all of the enemy. I started driving in circles, until I had them surrounded, and then I escaped in the confusion."
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

there is a sample badword file in the source distro

check the misc dir.

depending on how you got bzflag, you may or may not have a misc dir. if you do not then get a sourcecode distrobution from sourceforge. and it will have it.
Last edited by JeffM on Wed Oct 06, 2004 11:01 pm, edited 1 time in total.
ImageJeffM
brad2901
Private First Class
Private First Class
Posts: 223
Joined: Sun Sep 12, 2004 9:17 am
Location: UK
Contact:

Post by brad2901 »

I couldn't find it - can post the sample file on here instead plz???
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

nope, you need to be able to get things from the internet if you want to be able to run a server.

Just go get ether a source code zip or tarball from the sourceforge download site.

it's the same place you got BZ from, there is even a link in the big pulldown at the top of this page.
ImageJeffM
User avatar
Lan
Private First Class
Private First Class
Posts: 296
Joined: Sun Jun 13, 2004 1:21 am
Contact:

Post by Lan »

It is in CVS too, so it can save you some time to just checkout that one file from CVS instead of getting an entire distro.

CVS module /bzflag/misc/xxxWordFilter.txt

xxx being one of two possible prefixes (there are two filters in there)
User avatar
Tegan
Private First Class
Private First Class
Posts: 40
Joined: Fri Apr 09, 2004 8:24 am
Location: around here someplace
Contact:

Post by Tegan »

maybe add:

lag
lagger
laggy
camper
camping

(and other popular vintage whines)
User avatar
Lan
Private First Class
Private First Class
Posts: 296
Joined: Sun Jun 13, 2004 1:21 am
Contact:

Post by Lan »

also, add these really awful insults to the list:

learner
brlcad
Patlabor221
trepan
DTRemenak
MeBigFatGuy
JBDiGriz

;) jk around
User avatar
ducatiwannabe
Private First Class
Private First Class
Posts: 3258
Joined: Tue Aug 10, 2004 3:55 pm
Location: Planet Earth
Contact:

Post by ducatiwannabe »

ok, your saying what words to write out, but is there something I type before in conf?

-badwordfile "BADWORD"

or such?

I wrote a txt out with all the bad words I could think of at the time, in any way to type, to try to fix this, but I'm not sure how to activate it :/ I know how to type it out, just how to set it up in conf?
brad2901
Private First Class
Private First Class
Posts: 223
Joined: Sun Sep 12, 2004 9:17 am
Location: UK
Contact:

Post by brad2901 »

type: -badwords <file_path>
User avatar
learner
General
General
Posts: 270
Joined: Sun May 11, 2003 2:06 am
Location: Maryland
Contact:

badwords file format

Post by learner »

The sample multilingual swear lists in the bzflag source distribution's misc/ directory include details on the format of the swear file:

Code: Select all

# They are sorted in alphabetical order with one word/phrase per line.  Words
# are case insensitive; punctuation and white-space are irrelevant (it's okay
# if punctuation is listed below, but it will be required during matching).
Strings will automatically match repetitive identical letter expansions.

Strings will automatically match l33t-speak.

Strings will automatically match common English word suffixes (e.g. dom|ity|memt|sion|tion|ness .. etc).

Strings will automatically match common prefixes.

Code: Select all

# Since all of the above matchings are done for free, they should NOT be
# explicitly listed below.  Only root words are necessary.  For foreign
# languages, it may be necessary to list all tenses of certain verbs, unless
# the rules can be strictly and simply quantified.
#
# There are certain foreign words which are simply too common or likely to
# include, and they are commented out below (e.g. "um" in Turkish).
Basically that all means that a whole lot of work is being done automatically for you. Just be careful what you put in to your file as it may match things you don't initially expect. As the multilingualSwearList.txt hopefully makes evident, you can also add comments to your file by putting a "#" before your comment on every line of the comment. Have @&*$ing fun with it. :)

Cheers!
Last edited by learner on Mon Oct 04, 2004 8:08 pm, edited 1 time in total.
brad2901
Private First Class
Private First Class
Posts: 223
Joined: Sun Sep 12, 2004 9:17 am
Location: UK
Contact:

Post by brad2901 »

its -badwords file/path/to/badwords.txt :)
Post Reply