Changes between Version 2 and Version 3 of NamedVariable
- Timestamp:
- Mar 15, 2009, 8:16:35 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NamedVariable
v2 v3 4 4 The variable valuation must be placed on a newline following the rule in following format: 5 5 6 {{{$nameOfVariable[}}}[wiki:Attribute attribute]]{{{: <list of values (constraints) separated by white space>}}}6 {{{$nameOfVariable[}}}[wiki:Attribute attribute]]{{{: <list of values (constraints) separated by white space>}}} 7 7 8 8 For a variable, only the first following valuation applies. This enables sharing same variable names across the rules.[[BR]] … … 14 14 {{{$CONJUCTION[word]: for and nor but or yet so}}} -- will match any of the listed words.[[BR]] 15 15 {{{$NOTNO[word not]: no}}} -- will match any word except of ''no''. 16 17 Named variables can be also used for interconnecting tags. Imagine you want create a rule for matching a coordination consisting either of two substantives or two adjectives (but not mixed substantive and adjective). This can be easily done by using the MATCH [wiki:Keyword keyword] as shown on the following example: 18 19 {{{ 20 $C1 [word and] $C2 21 ... 22 MATCH $C1[tag] $C2[tag] 23 k1 k1 24 k2 k2 25 END 26 }}}