Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

profanity checker

Status
Not open for further replies.

johnm1958

Programmer
Jul 6, 2006
2
GB
Hi

I am on day 2 of my perl learning ladder. I have a flash game where the user can input their name and their score is shown on a scoreboard. the name and score go to a small routine written in perl and it returns the present highest scores.

I am concerned about users inputting profanity as their name. Is there a routine that I could download that would filter out profanity that a newbie could handle?
thanks
 
Not an easy assignment for anyone. No matter how many words you can think of, there will always be more.
I would suggest that the script accepts a couple of initials along with the score and then you can get on with the more interesting side of programming.

Keith
 
Regexp::Common::profanity, you may need a few dictionaries to seed it though, and there are some colourful ones out there ...

HTH
--Paul

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
thanks for your help.. I think I may need to wait a while before I tackle this.
 
get stuck in, fear nothing ;-)

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top