Skip to content
Snippets Groups Projects
Select Git revision
  • 8a01a0cab21d49b61ece166fa6b103c78139b142
  • master default protected
  • fix-words-ann
  • wccl-rules-migration
  • develop
5 results

prop-match.ccl

Blame
  • prop-match.ccl 630 B
    
    
    match_rules(
    	apply(
    		match(
    			optional(equal(base[0], "nie")),
    			repeat(
    				inter(class[0], {adj, ppas, pact})
    			)
    		),
    		cond(
    			agr(first(:2), last(M), {nmb,gnd,cas})
    		),
    		actions(
    			mark(M, "AdjP")
    		)
    	);
     
    	apply(
    		match(
    			optional(is("AdjP")),
    			inter(class[0], {subst, ger, depr})
    		),
    		cond(
    			or(
    				empty(:1),
    				agrpp(last(:1), first(:2), {nmb,gnd,cas})
    			)
    		),
    		actions(
    			setprop(M, "qtype1", "valueO")
    		)
    	);
    	apply(
    		match(
    			optional(is("AdjP")),
    			inter(class[0], {subst, ger, depr})
    		),
    		cond(
    			equal(orth[1], "trudno")
    		),
    		actions(
    			setprop(M, "qtype2", "valueX")
    		)
    	)
    )