Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obscenity word table
Message
From
22/08/2010 09:26:53
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01477715
Message ID:
01477772
Views:
76
>>>In English: http://www.noswearing.com/dictionary
>>>
>>>>I'm doing an input form and want to scan and redact obscene words. Does anyone know of an available table containing offending words to match against? I know almost 92% from my own vocabulary, but though I ask for help on the remainder.....hehehehe!
>>
>>Thank you. I found this and built a table containing some 340+ words. If anyone would benefit from it I'll gladly email a copy of the table. Did a scan through the table checking for occurrence of any word in $ myfield and I'd say it's 95% effective.
>>
>
>Be careful with $ operator because of partial matches.

Thank you. Yep, I found that with 'ho' found in hoe so I added a blank space to some words to check for them in their entirety.
(lcword = allt(table.word)+' ') .... check for lcword $ texttocheck.

Make sense?

dg
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform