-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Extend JSON API to accept markup instead of plain text only #757
Comments
Do you use the LT Java API? Then you can use https://languagetool.org/development/api/org/languagetool/markup/AnnotatedTextBuilder.html to define markup and text. |
No I use LT with HTTP Server |
This is not supported yet, sorry. Pull requests welcome, the place where this would need to be added is https://github.com/languagetool-org/languagetool/blob/master/languagetool-server/src/main/java/org/languagetool/server/ApiV2.java#L60 |
How would you want for the api to receive the data? Instead of
would you allow to alternatively receive a JSON structure like this?
Or what other format would be in line with languagetool's philosophy? |
I guess the alternative would be this?
It's a bit more compact, but I'm not sure. What do you think? Are there other approaches? |
I don't know about other approaches. I like your markup better than mine though. |
This has now been implemented. Will probably be online at languagetool.org later today. Documented at https://languagetool.org/http-api/swagger-ui/#!/default/post_check |
Hi,
I use languageTool to check documents in asciidoc.
I would like to exclude from verification regular expressions; is it possible ? How?
For example, in my text I can have
Lorem ipsum dolor sit amet, a and sit, [red]#elementum# semper erat nibh magna donec adipiscing, masso como leo dui massa
And I don't want to control the content between
[
and]
(red)Jérôme
The text was updated successfully, but these errors were encountered: