SydLexia.com Forum Index
"Stay awhile. Stay... FOREVER!"

  [Edit Profile]  [Search]  [Memberlist]  [Usergroups]  [FAQ]  [Register]
[Who's Online]  [Log in to check your private messages]  [Log in]
The forum's wordfilter is broken


Reply to topic
Author Message
The Opponent
Title: Forum Battle WINNER
Joined: Feb 24 2010
Location: The Danger Zone
PostPosted: May 03 2012 10:28 pm Reply with quote Back to top

Case in point: Hideo Kojima


I'm not a bad enough dude, but I am an edgy little shit. I'll do what I can.
 
View user's profileSend private messageVisit poster's website
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
PostPosted: May 03 2012 11:06 pm Reply with quote Back to top

Huh?
View user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
The Opponent
Title: Forum Battle WINNER
Joined: Feb 24 2010
Location: The Danger Zone
PostPosted: May 03 2012 11:13 pm Reply with quote Back to top

Image
Mr. KojI am going to doesn't appreciate.


I'm not a bad enough dude, but I am an edgy little shit. I'll do what I can.
 
View user's profileSend private messageVisit poster's website
@om*d
Title: Dorakyura
Joined: Jul 10 2010
Location: Castlevania
PostPosted: May 03 2012 11:16 pm Reply with quote Back to top

I noticed it with Hiroshima but not with a word like images. I guess the letters have to be at the end of the word.


Image
 
View user's profileSend private messageVisit poster's website
The Opponent
Title: Forum Battle WINNER
Joined: Feb 24 2010
Location: The Danger Zone
PostPosted: May 03 2012 11:35 pm Reply with quote Back to top

It could be fixed with a regular expression.


I'm not a bad enough dude, but I am an edgy little shit. I'll do what I can.
 
View user's profileSend private messageVisit poster's website
sidewaydriver
2010 SLF Tag Champ
Title: ( ͡� &#8
Joined: May 11 2008
PostPosted: May 04 2012 12:03 am Reply with quote Back to top

Lima beans


Shake it, Quake it, Space Kaboom.
 
View user's profileSend private message
Preng
Title: All right, that's cool!
Joined: Jan 11 2010
Location: Accounting Dept.
PostPosted: May 04 2012 12:22 am Reply with quote Back to top

Man, the IMA, or the Institute of Management Accountants, isn't going to be too happy.
View user's profileSend private message
sidewaydriver
2010 SLF Tag Champ
Title: ( ͡� &#8
Joined: May 11 2008
PostPosted: May 04 2012 12:55 am Reply with quote Back to top

We should make a movie about this. I'd pay to see it in the cinima.


Shake it, Quake it, Space Kaboom.
 
View user's profileSend private message
Klimbatize
2010 NES Champ
Title: 2011 Picnic/Death Champ
Joined: Mar 15 2010
Location: Las Vegas, NV
PostPosted: May 04 2012 01:19 am Reply with quote Back to top

I remember when I was a kid living in Pima County, Arizona, and one time my dad said, "Li'l Klima, pass me the Aunt Jemima." My brother was playing Ultima Online, using his Prima strategy guide. He enjoyed exploring his anima, so he always played as a female character. Our neighbor knocked on the door and said "I just set up this new Optima Home Theater system, check it out!" He played us a documentary about the last living arapaima fish who had somehow wound up in Bima, Indonesia. The sima seemed to literally rock as I watched it all unfold. "Ima get one of these when I grow up in Lima, Peru," I promised myself.


Pretty much the greatest thread of all time: http://www.sydlexia.com/forums/viewtopic.php?t=14789

Image
 
View user's profileSend private messageSend e-mail
sidewaydriver
2010 SLF Tag Champ
Title: ( ͡� &#8
Joined: May 11 2008
PostPosted: May 04 2012 01:27 am Reply with quote Back to top

Klimb is such a prima donna.


Shake it, Quake it, Space Kaboom.
 
View user's profileSend private message
koakuma
Joined: Apr 14 2012
PostPosted: May 04 2012 04:27 pm Reply with quote Back to top

Maybe to correct that you should put a space before the imas that should get changed.
Like that, normal words finishing by "ima" wouldn't get changed, like ultima, anima, lima (even if those words aren't used often)
I'm wondering if mistakes like that could be done with the other forbidden words like prolly and pwease.
I don't think any words finishes by pwease, though.


Image
 
View user's profileSend private messageSend e-mail
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
PostPosted: May 04 2012 05:44 pm Reply with quote Back to top

Current Code:
Code:
(^||\w|[a-z])Word to Replace(?=([^a-zA-Z]|$))


Feel free to help out!

ima
Ima
ima!
Testing Ima and Ima



 
View user's profileSend private messageVisit poster's website
The Opponent
Title: Forum Battle WINNER
Joined: Feb 24 2010
Location: The Danger Zone
PostPosted: May 04 2012 06:02 pm Reply with quote Back to top

^word$ should be enough, no?

Good thing I took a reference screenshot. And I forgot to test it with 今.


I'm not a bad enough dude, but I am an edgy little shit. I'll do what I can.
 
View user's profileSend private messageVisit poster's website
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
PostPosted: May 04 2012 06:11 pm Reply with quote Back to top

The-Excel wrote:
^word$ should be enough, no?

Good thing I took a reference screenshot. And I forgot to test it with 今.

The trouble I am having is that javascript doesn't have the ability to do a look behind. So I can't easily tell what character comes before the first letter of the string.

I am thinking about running through the process twice... forwards, reverse everything, then backwards.. a bit more code, but it might work.



 
View user's profileSend private messageVisit poster's website
sidewaydriver
2010 SLF Tag Champ
Title: ( ͡� &#8
Joined: May 11 2008
PostPosted: May 04 2012 06:23 pm Reply with quote Back to top

This word filtering is making me thirsty. I could sure go for a Zima right now.


Shake it, Quake it, Space Kaboom.
 
View user's profileSend private message
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
PostPosted: May 04 2012 06:50 pm Reply with quote Back to top

GPFontaine wrote:
Current Code:
Code:
(^||\w|[a-z])Word to Replace(?=([^a-zA-Z]|$))


Feel free to help out!

ima
Ima
ima!
Testing Ima and Ima

Update:
Code:
RegExp('(^|[^[a-zA-Z0-9\'\"\S\w])' + word_to_replace + '(?=([^a-zA-Z]|$))', 'gi');

~ima `ima !ima @ima #ima $ima %ima ^ima &ima *ima (ima )ima -ima _ima +ima =ima



 
View user's profileSend private messageVisit poster's website
Klimbatize
2010 NES Champ
Title: 2011 Picnic/Death Champ
Joined: Mar 15 2010
Location: Las Vegas, NV
PostPosted: May 04 2012 08:14 pm Reply with quote Back to top

Well now my earlier post just looks nonsensical.


Pretty much the greatest thread of all time: http://www.sydlexia.com/forums/viewtopic.php?t=14789

Image
 
View user's profileSend private messageSend e-mail
@om*d
Title: Dorakyura
Joined: Jul 10 2010
Location: Castlevania
PostPosted: May 04 2012 08:50 pm Reply with quote Back to top

Klimbatize wrote:
Well now my earlier post just looks nonsensical.

I just read it and it is still a great post. I wanted to do something like that but I was tired and went to sleep instead.

Good job!


Image
 
View user's profileSend private messageVisit poster's website
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
PostPosted: May 04 2012 08:53 pm Reply with quote Back to top

Wait, what? Is there a separate word filter from the admin word filter that I have personal and singular control over? Because the word filter that I have in place via the phpBB software doesn't have "ima" in it.
View user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
UsaSatsui
Title: The White Rabbit
Joined: May 25 2008
Location: Hiding
PostPosted: May 04 2012 09:43 pm Reply with quote Back to top

"Pwease" should get you banned from the forums for 24 hours.
View user's profileSend private message
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
PostPosted: May 04 2012 10:22 pm Reply with quote Back to top

Syd Lexia wrote:
Wait, what? Is there a separate word filter from the admin word filter that I have personal and singular control over? Because the word filter that I have in place via the phpBB software doesn't have "ima" in it.

Sorry Syd, I'll explain.

A few weeks ago this thread popped up:
http://www.sydlexia.com/forums/viewtopic.php?t=17493

As a joke I set a javascript parser to cross out and red bold the corrections to all of the infractions in that thread. For better or for worse, I had thought I set a thread restriction to the parser. I realized today when this thread popped up that it was live on the rest of the forums.

At this point we can do any of the following:
1. Turn it off (it doesn't actually modify the content of the post, so no posts have been altered)
2. Turn it off except in the thread I intended for it to be in (fix the mistake) Edit: Until I hear from Syd, I fixed the code to make sure this only exists as a joke in the thread it was intended to be in.
3. Keep it on as is
4. Build on what exists and create a file that offers some toggle control (essentially make it more of an actual tool than a joke)

Whatever you like.

If you are interested this is how it works. A JS file calls the following functions
Code:
syd_page_content_mod(ORIGINAL_TEXT,REPLACEMENT_TEXT);

Code:
syd_page_content_mod("pwease", "please");
syd_page_content_mod("prolly", "probably");
syd_page_content_mod("adleast", "at least");
syd_page_content_mod("sammich", "sandwich");
syd_page_content_mod("ima", "I am going to");
syd_page_content_mod("Carson Daly is not a homo", "Carson Daly is definitely a homo");

This is the actual code that drives the replacement:
Code:
function syd_page_content_mod(word_to_replace, replacement_text) {
   var text_to_search = $('#thread_table').html();
   //var pattern = RegExp('(^||\w)' + word_to_replace + '(?=([^a-zA-Z]|$))', 'gi');
   pattern = RegExp('(^|[^[a-zA-Z0-9\'\"\S\w])' + word_to_replace + '(?=([^a-zA-Z]|$))', 'gi');

   var search_error = text_to_search.search(pattern);
   if(search_error != -1) {
      text_to_search = text_to_search.replace(pattern, " <s><span style='color:white;'>" + word_to_replace + "</span></s> <span style='color:red;font-weight:bold;'>" + replacement_text + "</span>");
      $('#thread_table').html(text_to_search);
   }
   search_error = "";
   pattern = "";
}



 
View user's profileSend private messageVisit poster's website
The Opponent
Title: Forum Battle WINNER
Joined: Feb 24 2010
Location: The Danger Zone
PostPosted: May 05 2012 10:14 am Reply with quote Back to top

The funny thing about this is that I discovered this glitch (if you could call it that) while reading through older threads researching a point I was trying to make. I was looking at Kojima's name for a good 10 seconds trying to figure out what happened and noticed that the "ima" was the only part crossed out, and realized it was on the list of banned words. Then I made this thread and completely forgot what thread I was replying to earlier.


I'm not a bad enough dude, but I am an edgy little shit. I'll do what I can.
 
View user's profileSend private messageVisit poster's website
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
PostPosted: May 08 2012 11:01 am Reply with quote Back to top

Yeah, I think I want it gone. I prefer my stealth word filter that doesn't make it immediately obviously that something's been censored.
View user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
JRA
Joined: Sep 17 2007
Location: The Opium Trail
PostPosted: May 08 2012 11:50 am Reply with quote Back to top

I thought that thing was turned off permanently after the sammich debacle.


There are a lot of what if's in life Donny. What if I hit you really hard in the face, knocked yo shit to the back of yo skull? What if I....had you girl gargle my nuts? The fact remains, you are a fuckin mutant.
 
View user's profileSend private message
Display posts from previous:      
Reply to topic

 
 Jump to: