1

I am terrible with grammar in general, and with s's in particular : I forget to put an s at the end of plural nouns and verbs in the third person, and I put random s's at the end of singular nouns and verbs not in the third person.

I use Texstudio with LanguageTool to edit scientific papers. Unfortunately LanguageTool misses most of those s's mistakes I regularly make.

I know the basics of adding rules to LanguageTools, including rules using regex. But I have a hard time coming up with a rule that would best catch those s's mistakes.

My question : Any idea what that(these) rule(s) could look like?

Notes :

  • I am not attached to using regex. Any suggestion using regex when effective and other strategies otherwise is welcome
  • What really matters to me is a rule that flags potential mistakes. I don't care much about the rule proposing an appropriate correction. Drawing my attention to potential mistakes suffices : once I see them, I can recognize them and correct them.
  • What I have so far is a very coarse rule which simply flags every word finishing with an s (\w*s\b). As I write and encounter words that naturally finish with an s (like "is" or "this"), I progressively add them as exceptions to the rule. That helps a little, but it is both too inclusive -- too many words get flagged, which means I start paying less and less attention to flagged words -- and not inclusive enough -- it doesn't identify any word for which an s is potentially missing.
  • As suggested by my current \w*s\b strategy, I am open to partial solutions. Any suggestion better than \w*s\b that I could implement in LanguageTool is much welcome.
4

0 回答 0