|
ASP DidYouMean
This method sets the dictionaries in use. The default value is "ALL" which makes use of all installed dictionaries.
This may be very inefficient in some cases.
You name 1 dictionary or multiple as a comma separated list.
These dictionaries are identified by the names of the dictionaries (*.dic) installed in C:\Program Files\AspDidYouMean\Dictionaries.
You can use getLanguagesAsArray() to find out which dictionaries are installed.
You can also set setLanguages to the value of "NONE" to unly use custom dictionaries.
Example
<%
set objDYM = server.createObject("ASPDidYouMean.DidYouMean")
strQuery = "Helllo & Bonn Jour"
objDYM. setLanguages ("English(optimised) , French")
strSuggest = objDYM.getSuggestionString(strQuery)
response.write strSuggest
set objDYM = nothing
%>
|