Skip to main content

TdxHunspellDictionary.NgramDistance Property

Specifies the distance between the misspelled and suggested words.

Declaration

property NgramDistance: Integer read; write; default 0;

Property Value

Type Default
Integer 0

Remarks

This property is only used by the n-gram-based algorithm.

Note the following:

  • The spell checker activates this algorithm, if the SuggestionsLiteMode property is True. If activated, the n-gram-based algorithm only searches for those suggested words that do not extend from the misspelled word for more than the value specified by the NgramDistance property.

  • If the NgramDistance property is 0, the value of 2 is implicitly used for the search.

The default value of the NgramDistance property is 0.

See Also