Ask questions via twitter! Message any question to @answers on twitter. We'll publish the question and send you a reply each time there's a new answer.
Next Question

Question

 
M$10.50 November 08, 2009 01:14 AM

Naughty word filter workaround on Mahalo?

Did you know that if you use a filtered word in a question that it shows up with d--shes in it?

But did you also know that that word shows up withOUT dashes in the page title in your browser or "back" button?

Is it possible to add a filter feature to page titles so everyone is protected from unwanted displays of undashed words?

(Tip goes to functional code examples that Mahalo might actually be able to tweak and incorporate into their site.)

"Our" site I mean. :)

NOTE: Answers endorsed by Mahalo staff will carry more weight. After all, they are the experts on whether a specific code would even work.

If the "Best Answer" is that Mahalo doesn't seek to filter page titles (for search purposes) so this exercise is moot, then "No Best Answer" may be selected.
Interesting Question?  Yes (2)   No (0)   

Interesting: buddawiggi M$0.25, brian san M$0.25

Email to a friend | RSS
 
 

 
   No Best Answer Selected, Tip Refunded
6 answerers thought this was unfair.
 
 


Answers (6)

Sort By
 
November 09, 2009 02:29 AM
Use php to filter the title field. Database the filtered field - don't filter on the fly.
Source(s):
My husband said that is what his programmers use for some of their programs. I could tell you where he works, but then I would have to kill you. Just kidding on the killing part, however, he could lose his job. I hope this helps.


Helpful Answer?  (1)   (0)   

Helpful: cherise

Tip komomai for this answer
Permalink | Report
   Reply  
 
 
 
November 09, 2009 02:40 AM
No worries, I'm too important to your husbands work to be offed so quickly anyway. ;)

Ask him if it's possible for his suggested technique to change the displayed title on the webpage without interfering with search engine functionality?

A sample of working code would be a plus. Remember, on Mahalo titles and pages are created from the question.

Report
 
 
 
November 09, 2009 03:21 AM
So long as people are not looking for naughty words. Look. To be sure just make sure that those questions that do have naughty words are not published permanently in the database. You already have copywriters and editors checking out Q & As, it shouldn't be that hard to pull it out and fix as a last-case scenario.

Report
 
 
 
November 09, 2009 05:20 AM
On Newsvine, where I previously resided, they seem to have figured out every workaround in the book. We'll see, using s--t as an example. This should be filtered and have dashes or other characters to fill in the offending spaces.

Two spaces in between letters, in caps:

S H I T

Alternate spelling:

S h y t e

I don't really want to dwell on this, as Mahalo is a friendlier, gentler place.
Source(s):
www.Newsvine.com

 
It was unfair to choose no best answer
The question was confusing. It's more like a pedantic tutorial, and I clearly didn't "get it." There was no way I expected best answer, but it seemed like this was a topic that should have been discussed directly with Mahalo, not posed as a general question.
 
 


Tags: profanity, workarounds

Helpful Answer?  (0)   (0)    Tip victoria_reid for this answer
Permalink | Report
   Reply  
 
 
 
November 09, 2009 05:25 AM
My goal isn't to find a way to work AROUND the filter. I want to bolster it so the "offensive" words don't show in the page title even though the Mahalo display is bleeped.

I leave it to Mahalo to handle creative workarounds. I'm under the impression that being able to alter the page title in addition to the question without disrupting search engine results is a desirable thing.

Report
 
 
 
November 09, 2009 05:33 AM
Agreed. I wish it were a more sophisticated method of filtration, you see, so the workarounds were not so easy to pull off.

Report
 
 
 
November 09, 2009 12:36 PM
I'm not a staff member, so I'm not sure how best to code the language filter as you mention, but I had similar thoughts for how to handle answers that contain text or videos with profanity (or content not so good for youngsters)

Perhaps a solution would be to have a button on each question and each answer that any user can click to mark it as "mature" material.

And similar to how unhelpful answers (marked so at least 3 times) are hidden until you click on them, content marked as "mature" could be hidden from view until a user clicks the link.

Helpful Answer?  (0)   (0)    Tip brian san for this answer
Permalink | Report
   Reply  
 
 
 
November 09, 2009 02:35 PM
Any ideas on how to also put that functionality in the page title (at the top of your web browser page)?

Report
 
 
 
November 09, 2009 01:10 PM
A very highlevel suggestion is;
1. Strip the HTML or formatting tags from the heading text or texts - PHP has nice set of functions to do this
2. Use a very fast Regex to match the naughty words from a list of naughty words
3. To counter the issue @victoria_reid mentioned - one need to use Bi-gram/N-gram string matching to find foul words
4. Strike out the naughty words found

But it is true, there are many ways to approach this and the same time there are many ways to pass these kinds of filters. It is A battle!
Source(s):
http://en.wikipedia.org/wiki/Bigram


Tags: regex, n-gram, string-matching, bi-gram

Helpful Answer?  (0)   (0)    Tip crys for this answer
Permalink | Report
   Reply  
 
 
 
November 09, 2009 02:36 PM
Mahalo has that working fine on answers themselves, just not in the title of the page as my browser reads it. Any ideas on that specifically?

Report
 
 
 
November 09, 2009 02:57 PM
@silverhammer
That require some knowledge on how the page is generated via app script. But at least can you point me to a page with strike-out words so I can guess?

Report
 
 
 
November 09, 2009 03:21 PM
The link that inspired this question has been removed. I wonder if we could create a test question in the NSFW section? I don't recall if that section filters though. Maybe a staffer will see this thread and link one for us to ponder.

While I don't expect anyone to crack Mahalo code in the process, seeing an example might inspire an answer.

Remember, I'm only asking for sample code on how to pass a filtered word to the page title so that it's still filtered, without losing search capabilities by retaining the original word (just not obvious in my browser title like it is now). Is it even possible?

Report
 
 
 
November 09, 2009 01:38 PM
On a video game and collecting board I'm part of we have word filters. Certain words would get posted as something completely different and irrelevant, like "warm chocolate pudding" or "Bea Arthur".

Helpful Answer?  (1)   (0)   

Helpful: lilyloretta

Tip chriswingate for this answer
Permalink | Report
   Reply  
 
 
 
November 09, 2009 02:43 PM
Cute! I love that idea. But the actual question would morph into something entirely different. I think the goal is to preserve the search ability while still changing what the browser displays.

I'd link an example page on Mahalo but the question that inspired my question has since been reported/removed.

Report
 
 
 
November 09, 2009 05:50 PM
I was not aware of this, thanks for finding it, I will forward this information along to the development team.

In the future, don't full the urgency to get these bugs noticed by posting M$10 questions, you can always contact staff directly or submit a bug report.

Helpful Answer?  (3)   (0)   

Helpful: chriswingate, silverhammer, victoria_reid

Tip jeffhoard for this answer
Permalink | Report
   Reply  
 
 
 
November 09, 2009 10:16 PM
Of course. What was I thinking?

Report
 
 
Buy Mahalo Dollars with Credit Card or PayPal

Top Members

This Week All Time
  • buddawiggi
    buddawiggi
    2nd Degree Black Belt
    26207 Points
    M$761.64 Earned
  • kty2777
    kty2777
    Purple Belt
    4930 Points
    M$188.41 Earned
  • opher
    opher
    Purple Belt
    3450 Points
    M$146.42 Earned
   See All
 

Most Popular Tags

mahalo(1528)
iphone(457)
music(447)
google(341)
food(303)
online(282)
beer(274)
money(256)
apple(246)
movies(239)
aotd(235)
health(204)
video(199)
free(198)
dog(197)
   See All
 

Categories

Welcome New Members


 
 
Mahalo Dollars are the currency of Mahalo Answers.

Each Mahalo Dollar costs $1.

Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More

 
 

Please log in to use this function.