The element assert
names a pattern that, if found to be false in any <m>
in a dependent TAN-A-lm file, will return the enclosed message upon validation of the dependent file, along with an error or warning. Modeled on Schematron <report>
.
Formal Definition
~condition-pattern
Defined at:
TAN-mor.rng
Used by: ~morphology-rule
Example 8.99. <assert>
<TAN-mor TAN-version="2018" id="tag:kalvesmaki.com,2014:tan-r-mor:eng:penn"> ......... <body> ......... <rule m-matches=".+"> <assert m-has-how-many-features="1">Features may not be combined.</assert> </rule> <rule m-has-features="$"> <assert tok-matches="$">Only $ may be tagged as a dollar sign.</assert> </rule> ......... </body> </TAN-mor>
Note | |
---|---|
Taken from eng.kalvesmaki.com,2014.2 |