Converting From Older SISR

If your grammars were written against an early draft of the SISR 1.0 specification, migrating them to the 2006 final Recommendation is straightforward — the syntax changed in a handful of predictable ways. Map each of the following and most grammars convert mechanically:

  • The $ variable is now out.
  • $$ is now rules.latest().
  • To read a rule's variable, use rules.rulename instead of $rulename.
  • $$$ is now meta.current().
  • Rule meta-information is now reached through meta.rulename, specifying either text or score as the property.

The colon-and-quotes literal shortcut has also been removed, so this is no longer valid SISR:

$one = one:"1";

To assign literals now, declare the appropriate Tag Format in the grammar header and set the value inside an SISR tag; see SISR Basics and Rule Variables for the details. You can no longer mix literal shortcuts and script tags within the same grammar.


Related Articles


Was this article helpful?