diff --git a/tools/noprep.ccl b/tools/noprep.ccl new file mode 100644 index 0000000000000000000000000000000000000000..583ef6b75a6110a38eb9ef795f0638af3fb71b5c --- /dev/null +++ b/tools/noprep.ccl @@ -0,0 +1,28 @@ +// 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") + ) +) +