|
setBannedWords(arrWordsArray)
This method sets an array of banned words which will be excluded from results. This helps block competitor's names, abuse and profanity.
You can also set banned words by adding them to C:\Program Files\AspDidYouMean\Dictionaries\banned.txt one word per line, in any order.
Although there is little or no profanity in the English(optimized) dictionary, some of the larger dictionaries may naturally contain words which could be inappropriate certain contexts.
Example
<%
set objDYM = server.createObject("ASPDidYouMean.DidYouMean")
strBanned = Array ("foul","language","profanity","smut" )
objDYM.setBannedWords ( strBanned )
%> |