swirec_grammar_script_sisr
A grammar script to be invoked on the root rule of each n-best result.
Value |
Any wchar string |
Default |
(empty) |
How to set |
Shown in precedence order (see Rules of parameter precedence): Set in the browser, using the Vendor-Specific-Parameters header in a RECOGNIZE or SET-PARAMS method. In a parameter grammar. |
Usage |
Occasionally used to perform computations on keys and values. |
This parameter specifies a script for grammars that use literal or script syntax; when the grammar uses swi syntax, use swirec_grammar_script instead.
The grammar script must be written using script syntax. The script has access to the root rule’s out variable, as well as its SWI object and meta.current(). For example:
if (out.city == 'austin') SWI.SWI_disallow=1
For usage details and an example, see swirec_grammar_script.