RecognitionModes Enumeration

RecognitionModes Enumeration

Defines values that specify how the recognizer interprets the ink and determines the result string.

This enumeration has a FlagsAttribute Leave Site attribute that allows a bitwise combination of its member values.

Definition

Visual Basic .NET Public Enum RecognitionModes
C# public enum RecognitionModes
Managed C++ __value public enum RecognitionModes

Constants

Constant Name Description
None Specifies that the recognizer applies no recognition modes.
WordMode Specifies that the recognizer treats the ink as a single word.

For example, if the context contains to get her, the recognizer returns together.

Note: Some compound words in the dictionary are treated as single words by recognizers of Latin script (for example, Los Angeles). In addition, certain factoids such as Date in U.S., U.K., German, and French treat some multiple word dates as single words (such as January 21, 2000).
TopInkBreaksOnly Disables multiple segmentation.

This turns off the recognizer's ability to return recognition results based on more than one recognition segment of the ink, where each segment corresponds to a word (in recognizers of Latin script) or a character (in recognizers of East Asian characters).

The word "together" always returns alternates based on "together" being a single word, and the recognizer does not consider the string might also be "to get her" or some other variation with differing segmentation.

Turning on this flag enhances recognition speed.

Coerce Specifies that the recognizer coerces the result based on the factoid that you specified for the context.

For example, if the Telephone factoid is specified and the user enters the word hello, the recognizer may return a random phone number or an empty string. If this flag is not specified, the recognizer returns hello as the result.

Enumeration Information

Namespace Microsoft.Ink
Assembly Microsoft.Ink (microsoft.ink.dll)
Strong Name Microsoft.Ink, Version=1.7.4009.0, Culture=neutral, PublicKeyToken=a2870d9cc4d021c8

See Also