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

np-match.ccl

Blame
  • user avatar
    Adam Radziszewski authored
    b30acda4
    History
    np-match.ccl 438 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(
    			mark(M, M, :2, "NP")
    		)
    	)
    )