Back to LanguageTool Homepage - Privacy - Imprint

[pt] How often do you update the models?

Hi,

I’m doing some tests to see if your tool fits my needs. So, for now, I’m just testing your public API, and I have a few questions:

  1. Are the results returned by the LanguageTool server the same as those returned by the public API?

  2. How often do you update the models? For instance, the word “transgénero” (i.e., transgender) is a correct/valid word, and the API returns “transe”. Other, the word “corassão” the correct word is “coração” (i.e., heart) and the API returns “coras”.

I don’t know if I’m using your API correctly.

My goal is to have a query suggestion on my website. But I wanted a query suggestion more focused on spellchecker.

The request that I am using is similar to:

text=WORD_SPELLCHECKER&language=pt-PT&enabledOnly=false

Mostly yes, but sometimes we run tests with rules which you might not see with a local server.

The public API uses the latest code, which is usually deployed every 24 hours.

I cannot reproduce that, could you provide a full URL or curl call?

https://api.languagetoolplus.com/v2/check?text=corassão&language=pt-PT -> suggests coração for me

I can not reproduce the URL. But the code that I used was (python):

endpoint_languageTool = “https://languagetool.org/api/v2/check
headers_languageTool = {
‘Content-Type’: ‘application/x-www-form-urlencoded’,
‘Accept’: ‘application/json’,
}
data = “text=” + WORD_SPELLCHECKER + “&language=pt-PT”

response = requests.post(endpoint_languageTool, headers=headers_languageTool, data=data)
json_response = response.json()
suggestion = json_response[“matches”][0][“replacements”][0][“value”]

However, I already solved the problem with your URL.

I think there are other problems, I will analyze and then update this post.

There is a way to solve this problem:

Can I send the words “portugal lisbo” and the words returned will be “Portugal Lisboa”?

For instance , https://api.languagetoolplus.com/v2/check?text=portugal+lisbo&language=pt-PT