Name | Type | Default value | Description |
---|---|---|---|
regexp | string | Regular expression to recognize. | |
annotation | string | Tag of the annotations to add on matched tokens. | |
level | enum(exact, lowercase, normalized) | normalized | Level of the regular expression. For example, a regexp with level=lowercase matches case-insensitively. |
lang | iso code | xx | Lang of the regular expression. The regexp does not match token in other languages. If lang=xx, token may be matched, no matter the language they are in. |
displayForm | string | Value of the annotations to add on matched tokens. By default, the display form is that of the matched tokens, but the user can override it. Captures may be used. For example if the regexp is "(foo)bar", and the displayForm is "\1baz", then annotations are added on "foobar" with value "foobaz". |