languagetool-org / languagetool

Style and Grammar Checker for 25+ Languages
https://languagetool.org
GNU Lesser General Public License v2.1
12.2k stars 1.38k forks source link

[en] Postags for phrases #2213

Open MikeUnwalla opened 4 years ago

MikeUnwalla commented 4 years ago

Idea: Some rules that use SENT_START are probably applicable to text that starts with an adverbial phrase such as these: However, Whenever possible, On the other hand,

If we make a new postag for adverbial phrases, we could then easily adapt rules that start with SENT_START, thus: SENT_START|ADVERBIAL_PHRASE

I will do some tests to see how this might work. (I will add the POS in disambiguation.xml. If the results look good, possibly, @danielnaber will make a text file in which to put these phrases.)

MikeUnwalla commented 4 years ago

This method seems to work. (I have not done regression tests.)

@danielnaber, I don't intend to do anything more with this rule until after the release of LT 4.8.