Re:Ask HN: Natural language processing to identify grammar i...
by Tainnor on Thursday September 10, 2020 @08:33AM
(#24431674)
That rule is really rather limited. More in general, I doubt you can properly recognise passive constructions without doing constituent parsing, passive is really a syntactic construction, not a morphological one.
Re:Ask HN: Natural language processing to identify grammar i...
by unhammer on Thursday September 10, 2020 @08:56AM
(#24431876)
Or dependency parsing. But unfortunately the English package in Apertium doesn't have a syntax CG (there are proprietary English syntax CG's out there, with syntactic function labelling and dependency relations, while in Apertium there are syntax CG's for some other languages).
OTOH, what's the goal? If you just want to flag some high-frequency constructions you can get quite far with very little depth.
If you want to e.g. mark passive, it's easy to write a Constraint Grammar rule to do this. Put the following into rules.cg3:
and pipe it in after the above pipeline: ( https://wiki.apertium.org/wiki/Constraint_Grammar for more info on CG )