languagetool-org / languagetool

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

[FR] several unrelated v not detected ! #5359

Open philippehenri opened 3 years ago

philippehenri commented 3 years ago

repeated verbs, no error detected ! :

Nous avons mangé marché couru toute la journée.

Nous devons manger marcher courir toute la journée.

Nous devons manger marché courir toute la journée.

Nous devons manger marché dansé toute la journée.

Nous avons besoin de manger marcher courir.

Je suis allé manger dormi dansé au cinéma.

Nous avons pu manger courir dormir à volonté.

and btw (not detected "avoir besoin"):

Nous avons besoins de manger marcher courir. -> avons besoin de... [no S]

udomai commented 3 years ago

Hi @philippehenri, thanks for reporting these! We will make sure they're detected asap.

Some of those sentences seem "unrealistic" in the sense that I (a) don't see many people making that mistake, and (b) don't see how it could be automatically corrected. Example:

Je suis allé manger dormi dansé au cinéma.

Did he go eat, sleep, and dance at the cinema? Or did he go eat, sleep, dance, and to the cinema? I am thinking how a non-human algorithm could tell the difference. We can make sure a series of infinitives are separated (except when they shouldn't be (Je vais devoir aller voir)), but including compatible compléments circonstanciels (except when they shouldn't be included (Je suis allé manger dormir danser à la boîte d'à côté de chez moi)) is tough and requires world-knowledge in most cases. But we have some new AI stuff in the making that might do the trick.

philippehenri commented 3 years ago

Hi @udomai , Of course they are unrealistic, i made it on purpose. But in real life, If i edit a text, and rephrase it for example, I could easily end up with "Nous avons mangé déjeuné au soleil.", right? Which wont be detected !

From a user point of view, if a grammar system cannot detect my unrealistic examples... ouch... I am sure that you will agree with me :-)

Or at least detect a few:

hmm...