// generates "real" NP chunks by removing chunk-initial prepositions
// the new chunks are added as "cut_np"

// to be used with wccl-rules

tag_rules(
	rule("noprep",
		and(
			isannbeg(0, "chunk_np"),
			not(in({prep}, class[0])),
			rlook(0, end, $End,
				isannend($End, "chunk_np")
			)
		),
		mark(0, $End, "cut_np")
	);
	rule("withprep",
		and(
			isannbeg(0, "chunk_np"),
			in({prep}, class[0]),
			rlook(0, end, $End,
				isannend($End, "chunk_np")
			)
		),
		mark(1, $End, "cut_np")
	)
)