Issue #1368: LanguageTool integration in CheckMate ignores region code (okapiframework/okapi)

0 views
Skip to first unread message

Daniel Hug

unread,
Aug 23, 2024, 4:47:21 AM8/23/24
to okapi-...@googlegroups.com
New issue 1368: LanguageTool integration in CheckMate ignores region code
https://bitbucket.org/okapiframework/okapi/issues/1368/languagetool-integration-in-checkmate

Daniel Hug:

CheckMate uses only the language code when calling the LanguageTool API, ignoring the region code:

![](https://bitbucket.org/repo/Bp79rx/images/1780607697-2024-08-23%2009_35_02-Untitled%20-%20CheckMate.png)
If I provoke an error, I can see the whole string sent to the LT API:

![](https://bitbucket.org/repo/Bp79rx/images/2281111082-2024-08-23%2009_40_47-AceText%20-%20SequencePaste%20Down.png)
```
Error with LanguageTool server. All LT checks are skipped from this text unit on. Server returned HTTP response code: 400 for URL: http://localhost:8081?oink=1/v2/check?language=en&text=[obfuscated]&srctext=[obfuscated]&motherTongue=en
```

For languages like English or Spanish, this makes the LanguageTool integration almost worthless, so this would be good to fix.
Reply all
Reply to author
Forward
0 new messages