languagetool-org / languagetool

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

[en] incorrect capitalisation of verb is not always detected for similar sentences #4415

Open peldszus opened 3 years ago

peldszus commented 3 years ago

Dear LT-team/community, first of all thanks for this great tool! :+1: Here a report of a little inconsistency I recently found.

Problem: When incorrectly capitalizing the main verb in a simple comparison sentence, this is not always recognized.

For these examples, the capitalisation error is not detected:

Chloe Sings better than Oliver. Chloe Drives better than Oliver.

For similar examples, just with different names, this is sometimes, or always detected. image

danielnaber commented 3 years ago

Thanks for your feedback. The reason this sometimes works and sometimes doesn't is that the rules internally relies on ngram data. So, the occurrence count of "Marilyn Drives" is compared to that of "Marilyn drives", then a decision is made based on a threshold. Thus, I don't see an easy fix (at least for this approach).