SpellServer Reference DocumentationMethodsGetNextMisspellingFinds the next misspelling in the current string, and returns the misspelled word, it's location, and a list of suggested replacements.
[Visual Basic] [Sessionless Interface]
Public Function GetNextMisspelling (_
ByRef sSuggestions As String, _
ByRef nErrorFoundAt As Integer _
) As String
[Visual Basic] [Sessions Interface]
Public Function GetNextMisspelling (_
ByRef sResultSoFar As String, _
ByRef sSuggestions As String, _
ByRef nErrorFoundAt As Integer _
) As String
Parameters
A string containing the misspelled word. Returns an empty string if there are no further misspellings in the string. RemarksThis function checks the current string starting at the current point and returns the next
misspelled word in the string. If there are no further misspellings, then an empty string is returned.
ChangeWordTwo possible functions: Change the currently misspelled word to another word, or change all subsequent occurances of the currently misspelled word to another word, from the current point to the end of the string.
[Visual Basic] [Sessionless Interface]
Public Sub ChangeWord (_
ByVal sBadWord As String, _
ByVal sNewWord As String, _
ByVal bChangeAll As Boolean
)
[Visual Basic] [Sessions Interface]
Public Sub ChangeWord (_
ByVal sNewWord As String, _
ByVal bChangeAll As Boolean
)
Parameters
Depending on the value of the bChangeAll parameter, this routine will change either the currently
misspelled word with a new word, or the currently misspelled word and all subsequent occurances of that
word from the current point to the end of the current string.
IgnoreWordTwo possible functions: Ignore the currently misspelled word, or ignore all subsequent occurances of the currently misspelled word, from the current point to the end of the string.
[Visual Basic] [Sessionless Interface]
Public Sub IgnoreWord (_
ByVal sWord As String, _
ByVal bIgnoreAll As Boolean
)
[Visual Basic] [Sessions Interface]
Public Sub IgnoreWord (_
ByVal bIgnoreAll As Boolean
)
Parameters
This routine will skip past the misspelled word and continue checking immediately after it. If the bIgnoreAll parameter is set to True, this routine will add this word to it's Ignore-All list of words, and all subsequent occurances of this word will be ignored during checking. See AlsoLoadCCDLoads in a Compiled Custom Dictionary file.
[Visual Basic] [Both Interfaces]
Public Sub LoadCCD (_
ByVal sFName As String,
ByVal bAppend As Boolean
)
Parameters
Compiled Custom Dictionary (CCD) files provide a very efficient method of adding large numbers of words to
the custom dictionary. Run the included Custom Dict Compiler app to create the CCD file, then include the
CCD file in your deployment and load it with the LoadCCD method. ClearCustomDictionary | CustomDictionaryWords AddToCustomAdds words to the custom dictionary.
[Visual Basic] [Both Interfaces]
Public Sub AddToCustom (_
ByVal sWords As String
)
Parameters
During spell checking, all words are checked against the standard base dictionary. If a word is not found
in this dictionary, then the Ignore-All list and the custom dictionary are searched. ClearCustomDictionary | CustomDictionaryWords RemoveWordsFromDictionaryRemoves words from the base and custom dictionaries.
[Visual Basic] [Both Interfaces]
Public Sub RemoveWordsFromDictionary (_
ByVal sWords As String
)
Parameters
This function removes all occurances of the specified words from both the base dictionary and the custom dictionary. The removal is case-insensitive, so if you specify that you wish "michigan" to be removed, the word "Michigan" will be removed (in this case, from the base dictionary). ClearCustomDictionaryEmpties the custom dictionary.
[Visual Basic] [Both Interfaces]
Public Sub ClearCustomDictionary ()
Remarks
This function can be used to ensure that the custom dictionary is clear. The custom dictionary is initialized as empty, so there is no need to call this function during normal initialization. See AlsoClearBaseDictionary | ClearIgnoreAll ClearBaseDictionaryEmpties the base dictionary.
[Visual Basic] [Both Interfaces]
Public Sub ClearBaseDictionary ()
Remarks
This function can be used to clear the base dictionary. The primary reason to do this would be if you wished to use only a custom dictionary, with no other words during the checking process. See AlsoClearCustomDictionary | ClearIgnoreAll ClearIgnoreAllEmpties the Ignore-All list of words.
[Visual Basic] [Both Interfaces]
Public Sub ClearIgnoreAll ()
Remarks
This function can be used to ensure that the Ignore-All list is clear. The Ignore-All list is initialized as empty, so there is no need to call this function during normal initialization. See AlsoClearCustomDictionary | ClearBaseDictionary CheckStringInitializes the string to be checked for the Sessions interface.
[Visual Basic] [Sessions Interfaces]
Public Sub CheckString (_
ByVal sStringToCheck As String
)
Remarks
This function is only used for the Sessions interface. It initially loads the string to be checked into SpellServer. PropertiesStringToCheckGets or sets the value of the string to be spell-checked.
[Visual Basic] [Sessionless Interface]
Public Property StringToCheck As String
Property Value
The string currently being spell-checked. RemarksUsed only in the Sessionless interface, this property gives you access to the string that is currently being spell-checked.
The string is stored in an internal buffer, and can be modified by the ChangeWord function.
StartCheckingAtGets or sets the value of the current starting point for the string to be spell-checked.
[Visual Basic] [Sessionless Interface]
Public Property StartCheckingAt As Integer
Property Value
The offset into the string to be checked. RemarksUsed only in the Sessionless interface, this property gives you access to the current starting point for spell-checking.
SpellServer will modify this value in response to calling IgnoreWord, ChangeWord, or
GetNextMisspelling. Changing the value of
StringToCheck will reset this value to 0, so be sure to set StringToCheck before
you set StartCheckingAt.
CustomDictionaryGets or sets the value of the entire custom dictionary.
[Visual Basic] [Both Interfaces]
Public Property CustomDictionary As String
Property Value
A sequence of words, separated by blanks or other white space. RemarksThis property allows you to either retrieve or change the value of the entire custom dictionary in a single step.
When setting this value, the entire custom dictionary will be replaced with the string. If you wish
to append words to the current custom dictionary (rather than replace the dictionary), use the
AddWordsToCustomDict method.
IgnoreAllDictionaryGets or sets the value of the entire Ignore-All list.
[Visual Basic] [Both Interfaces]
Public Property IgnoreAllDictionary As String
Property Value
A sequence of words, separated by blanks or other white space. RemarksAvailable in both interfaces, this property allows you to either retrieve or change the value of the
entire Ignore-All list in a single step.
When setting this value, the entire Ignore-All list will be replaced with the string. If you wish
to append words to the Ignore-All list (rather than replace it), use the
IgnoreWord method.
VersionInfoGets the version information string, which includes the word count for the base dictionary.
[Visual Basic] [Both Interfaces]
Public ReadOnly Property VersionInfo As String
Property Value
A string that specifies the current version of SpellServer. RemarksThis read-only property returns the current version information of SpellServer. Additionally,
the number of words currently stored in the base dictionary is also returned.
IgnoreCaseGets or sets the value of the option that controls how the spell-checking process treats the case of words.
[Visual Basic] [Both Interfaces]
Public Property IgnoreCase As Boolean
Property Value
True if the checking should ignore the case of words it checks; otherwise, false. The default is true. RemarksTypically this option will be true, to handle different cases of words. Note that SpellServer always handles
words that are initially capitalized. This property is designed for use for words that may be in ALL CAPS,
or that have UnUsUal cApITAlization. IgnoreAllCapsGets or sets the value of the option that controls whether the spell-checking process ignores words that are ALL CAPS.
[Visual Basic] [Both Interfaces]
Public Property IgnoreAllCaps As Boolean
Property Value
True if the checking should ignore (i.e., not spell-check) words that are ALL CAPS; otherwise, false. The default is false. RemarksOften, words in ALL CAPS are acronyms (like "NAFTA"), and should be ignored during the spell-checking process.
However, the default is false since some people will type in all of their text in all caps, and setting this
value to true would cause SpellServer to ignore all of their text.
IgnoreHTMLGets or sets the value of the option that controls whether the spell-checking process ignores words that seem to be HTML tags or special characters.
[Visual Basic] [Both Interfaces]
Public Property IgnoreHTML As Boolean
Property Value
True if the checking should ignore (i.e., not spell-check) words that appear to be HTML tags or special characters (like " "); otherwise, false. The default is true. RemarksIf you know that the text you are checking will not include any HTML tags or special characters, you may wish
to set this property to false for increased accuracy during checking. Note that SpellServer does not
keep detailed information about whether it is inside certain tag blocks (like "<SCRIPT>"), and will continue
to check the spelling of words inside of complex tags, regardless of the setting of this property.
IgnoreInternetAddrsGets or sets the value of the option that controls whether the spell-checking process ignores words that seem to be e-mail addresses or web page URLs.
[Visual Basic] [Both Interfaces]
Public Property IgnoreInternetAddrs As Boolean
Property Value
True if the checking should ignore (i.e., not spell-check) words that appear to be URLs or e-mail addresses; otherwise, false. The default is true. RemarksTypically this value will be true. If you know that the text you are checking will never contain
any URLs or e-mail addresses, you may wish to set this property to false for greater spell-checking accuracy.
IgnoreWithNumbersGets or sets the value of the option that controls whether the spell-checking process ignores words that have numeric digits in them.
[Visual Basic] [Both Interfaces]
Public Property IgnoreWithNumbers As Boolean
Property Value
True if the checking should ignore (i.e., not spell-check) words that have embedded digits; otherwise, false. The default is true. RemarksTypically this value will be true. If you wish to have greater spell-checking accuracy, you may
wish to set it to false.
LicenseKeySets the value of the license key, which you will receive when you purchase SpellServer.
[Visual Basic] [Both Interfaces]
Public Property LicenseKey As String
Property Value
Set this value to the string you receive when you purchase the product. RemarksYou must set this property when using the retail version of SpellServer.
|