Changes between Version 2 and Version 3 of NamedVariable


Ignore:
Timestamp:
Mar 15, 2009, 8:16:35 PM (15 years ago)
Author:
Miloš Jakubíček
Comment:

MATCH description

Legend:

Unmodified
Added
Removed
Modified
  • NamedVariable

    v2 v3  
    44The variable valuation must be placed on a newline following the rule in following format:
    55
    6 {{{$nameOfVariable[}}}[wiki:Attribute attribute]]{{{: <list of values (constraints) separated by whitespace>}}}
     6{{{$nameOfVariable[}}}[wiki:Attribute attribute]]{{{: <list of values (constraints) separated by white space>}}}
    77
    88For a variable, only the first following valuation applies. This enables sharing same variable names across the rules.[[BR]]
     
    1414{{{$CONJUCTION[word]: for and nor but or yet so}}} -- will match any of the listed words.[[BR]]
    1515{{{$NOTNO[word not]: no}}} -- will match any word except of ''no''.
     16
     17Named 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...
     22MATCH $C1[tag] $C2[tag]
     23k1 k1
     24k2 k2
     25END
     26}}}