languagetool-org / languagetool

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

[en] False positive comma suggestion before "so" #5618

Open donnerpeter opened 3 years ago

donnerpeter commented 3 years ago

Here: Consider rewriting the method so it becomes easier to understand.

A linguist tells me the comma isn't necessary.

udomai commented 3 years ago

There are very few cases in which a comma is really necessary according to all style guides. In this case, though, I tend to agree:

"so" can profit from a comma before it when it means "and for that reason" (introduces a result):

My bike is cactus, so I have to walk to work.

There shouldn't really be a comma if you can replace it with "with the objective that" (introduces a purpose, a finality).

I am rephrasing this sentence so it is easier to understand.

@AzadehSafakish, @plumaj: Does that rule of thumb make any sense in actuality?

AzadehSafakish commented 3 years ago

Yes, a comma is not necessary in the example sentence and your generalization is correct.

qenya commented 1 year ago

I just encountered this false positive too. In fact, a lot of the example sentences make the same mistake!

For example:

I need to borrow some money so I can buy some medicine for Tom.

This means "I need to borrow some money in order to buy some medicine for Tom."

However, the rule description suggests "correcting" it to:

I need to borrow some money, so I can buy some medicine for Tom.

This means "I can buy some medicine for Tom because I need to borrow some money", which is clearly not correct.