Specifies to what degree input must match a word list set into an HRC
determines the influence a recognizer's word list or dictionary has on the
int SetWordlistCoercionHRC( HRC hrc, UINT uCoercion )
Handle to the HRC
Coercion flag. This can be one of the following:
The word list serves only to advise the recognizer, but lacks a strong degree
of influence. Recognition results are not strongly coerced to match the word
If the recognizer's guess is not found in the word list, the closest matching
entry in the list is returned. For example, if the recognizer interprets
writing as "Cana", it returns "Canada" from a word list of country names.
Do not coerce. This flag can be used to turn off a previous request.
Returns HRCR_OK if successful; otherwise, returns one of the following
||Invalid parameter or other error, including an attempt to set coercion with no
word lists set into the recognition context.
||The recognizer does not support this function.
The default type of coercion a recognizer provides is SCH_ADVISE. That is,
results are not strongly coerced to any word list that might be set into a
Coercion is used only if a word list (HWL
) has actually been set into an HRC
, or if the recognizer's dictionary is enabled by EnableSystemDictionaryHRC
. If the HRC
is configured with a word list and the recognizer's dictionary is also
enabled, coercion is done on both; the priority depends on the recognizer.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages