# # sandbox grammar # ATTENTION: uses TreeTagger interpretatiom of Penn TB Tagset # DELIMITERS = "<.>" "" "" ; # sentence window SETS LIST PPART = VBG VHG VVG ; # possible gerunds LIST INFIN = VV VB VH; # infinitives LIST ADVER = RB RBR RBS; # adverbs BEFORE-SECTIONS # add gerund reading APPEND ("" GERUND) PPART # add present participle reading # need to insert "" as empty wordform, otherwise things break APPEND ("" PRESENTPART) (GERUND); # remove original reading REMOVE PPART # tree tagger: always TO for "to" -> "IN" before non-infinitives, # accepting inifinitvely many adverbs in between. SUBSTITUTE (TO) (IN) (TO) (NOT *1C INFIN BARRIER (*) - ADVER); # this is more work for visl and doesn't accept infinitively # many adverbs: #"" SUBSTITUTE (TO) (IN) (TO); #"" SUBSTITUTE (IN) (TO) (+1 INFIN); #"" SUBSTITUTE (IN) (TO) (+1 ADVER) (+2 INFIN); CONSTRAINTS #empty AFTER-SECTIONS #empty