I’m trying to write a rule that will spot hyphenated adverbs with past participles. (Eg, a carefully-written letter). I have written this but it does not work. Can anybody say why?
Their pattern has to be expressed in one single token. The suggestion can then regexp_replace the hyphen with a space. If the message is suppress_misspelled="yes", this will prevent the rule from popping up if the resulting words are not in the dictionary. Right?
You can use EnglishPartialPosTagFilter to make a rule to find hyphenated adverbs. We do this in grammar-premium4/HYPHENATED_LY_ADVERB_ADJECTIVE.
@udomai, as best I remember, there is no documentation for EnglishPartialPosTagFilter. Can we have some, please? (Also, I did not find Search box on https://dev.languagetool.org/, so I could not check to make sure that there is no documentation.)