languagetool icon indicating copy to clipboard operation
languagetool copied to clipboard

Add apostrophes for English contractions

Open LLyaudet opened this issue 1 year ago • 3 comments

Hello,

I have the following error in PyCharm that uses LanguageTool: Typo: In word 'doesn' for the text: the code that doesn’t pass the tests I thought it would be easy to correct by simply adding the form: doesn’t, just after where doesn't is.

But it is explicitly asked to not do so here: https://github.com/languagetool-org/languagetool/blob/a043ef325d13469a6b56bc598d877495ca6e0458/languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/contractions.txt#L3

Then how to correct this false positive, please?

Best regards, Laurent Lyaudet

LLyaudet avatar Jan 02 '24 19:01 LLyaudet

LanguageTool doesn't detect any error in the sentence

the code that doesn’t pass the tests

How can we reproduce the error that you mention?

jaumeortola avatar Jan 02 '24 21:01 jaumeortola

Thanks for your answer :). By using PyCharm? I don't know exactly how PyCharm integrates LanguageTool. I do know that I see the error in PyCharm and that PyCharm uses LanguageTool. I will report the bug to PyCharm instead and I'll keep you informed. Sorry for the loss of time.

LLyaudet avatar Jan 02 '24 22:01 LLyaudet

Here is my bug report on Pycharm: https://youtrack.jetbrains.com/issue/PY-65647/True-apostrophe-makes-typo-warning-for-doesnt-not-for-single-quote-doesnt

LLyaudet avatar Jan 02 '24 23:01 LLyaudet