Back to LanguageTool Homepage - Privacy - Imprint

Default rules can't detect a simple sentence


(Amir) #1

I tried to test the library for a simple sentence like “Entrepenures is doin great.” I first tried the form on the languagetool.org and that was able to detect two errors in this sentence. Then I just tried to do it from Swagger API with:
text = “https://languagetool.org/http-api/swagger-ui/#!/default/post_check
language = ‘en’
and left the rest as default.

And the ‘matches’ key in the response was empty. I can see there are some options available to specify different rule IDs to apply but can’t find a document to give me some directions as to which rules should be the default ones for most applications.

Could someone help me out with this? I think I want to see if I can match the results of the Swagger API with the one on the Language Tool website.

Thank you.


(Daniel Naber) #2

You need to use en-US, en-GB or something like that.


(Amir) #3

Thank you Daniel. I just set it to the first value recommended in the Swagger doc "A language code like en or en-US, or auto to guess the language automatically ".

I set it to ‘en-US’ and it worked.