WSpell ActiveX Spelling Checker |
|
Home Site index Contact us Catalog Shopping Cart Products Support Search |
|
You are here: Home > Support > WSpell > Problems with locating suggestions |
|
|
Version: Any
Problems:
No suggestions are are given by the Suggest method or displayed in
the spelling dialog when a misspelled word is detected.
A number of factors affect the success of WSpell's suggestion feature, and it can be difficult to determine in advance what conditions are most likely to yield success. Some of the factors that influence the suggestion feature are listed below.
SuggestionDepth property: The value of the SuggestionDepth property is an integer ranging from 0 to 100. The value determines the tradeoff between time to locate suggestions and the quality of the suggestions produced. A value of 100 produces the best (most accurate) suggestions but takes the most time. Unfortunately, the factors listed below affect the depth needed to locate the best suggestion. For some misspellings, the correct suggestion will be located at depth 10 and for others depth 100 is needed. The built-in spelling dialog box uses an interesting approach to deal with this. Initially, the suggestion list in the spelling dialog box is populated using the depth indicated by the MinSuggestDepth property, which is typically fairly low (e.g., 30). This produces suggestions quickly, and, in many cases, produces the correct suggestion. The spelling dialog boxes contain a "Suggest" button. When this button is pressed, the suggestion depth value is increased by the value of the SuggestionDepthIncrement property, and a new set of suggestions is obtained. The user can repeatedly press the Suggest button to obtain suggestions at increasingly higher depths (until the maximum depth, 100, is reached, at which point the Suggest button is disabled).
Word length: Locating suggestions is pattern matching. Short words have less information available to ensure a successful match. Furthermore, the small number of letters means less letter diversity, which essentially means that short words tend to look more alike than do longer words, decreasing the probability that the correct match can be made.
Number of errors: The more incorrect letters a word has, the less it looks like the correct word and the more it may look like other words.
Position of errors: When errors occur near the beginning of a word, a higher suggestion depth may be needed to locate the correct spelling.
Similarity to other words: Words that have letters in common with many other words may result in so many suggestions of equal value that the correct spelling is discarded. This can happen because WSpell locates the best set of suggestions. The size of the set is determined by the MaxSuggestions property. For example, if MaxSuggestions is set to 16, but 17 words are found that make equally good replacements for the misspelled word, it's possible that the word left out will be the correct word.
Algorithm: The phonetic suggestion algorithm has a better chance of finding the correct spelling for badly misspelled words (e.g., where half of the letters are incorrect). However, the phonetic algorithm is sometimes confused by certain combinations of letters. Better results may be achieved by using both the phonetic and typographical algorithms (with some increase in the time required to locate suggestions). If neither suggestion algorithm is selected, then no suggestions will be produced.
|
Home Site index Contact us Catalog Shopping Cart Products Support Search |
|
Copyright © 2015 Wintertree Software Inc. |