-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YaLafi compatibility with the premium API of LanguageTool #225
Comments
I added the options |
Wow, thank you so much. It worked almost perfectly. I forgot to mention that in addition to an API key, the URL for the premium server is different. Once I changed the hardcoded URL for the LT server in shell.py to It might be nice to have the URL for a remote LT server as an actual option rather than having to hardcode it. Anyone wanting to connect to a remote LT server that is not the public one hosted by LT will have to change this; however, it is trivially easy to do, so it is not that big of a deal. Again, thank you so much. I am very happy to have this working. I thought I had wasted money, but now that it is working correctly, I am very happy with it. |
That’s great to hear. There already is a PR to allow custom server URLs #222. It would also need some more documentation and for the premium server, one might add Do you know any documentation or discussion about the difference between |
The only documentation I know of is the Swagger documentation, which I really haven't found to be very helpful. In general, I have found LT's documentation to be very confusing all around. In fact, I am not even sure that access to this API is even supposed to be available with their premium service. They only gave me an API key after I complained to them that their documentation was misleading. I still haven't gotten a clear answer, so just a heads up to anyone who is considering buying a premium membership. From what I have gathered, the free public API at |
I paid for a premium version of LT thinking it would be just as easy to connect to that server as it was to connect to their public one or to my local one. However, it has turned into a nightmare despite the only difference being an API key I have to pass to the server.
I can easily access the server outside of YaLafi with a call like:
curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' -d 'text=This is an test&language=en-US&username=&apiKey=&enabledOnly=false' 'https://api.languagetoolplus.com/v2/check'
I have tried all kinds of different things in YaLafi, but it just keeps bypassing the LT server and starts my local one. It seems like it should be an easy fix, but I am pretty lost on how YaLafi is handling --lt-options.
The text was updated successfully, but these errors were encountered: