findus23 / pylanguagetool Goto Github PK
View Code? Open in Web Editor NEWPython Library and CLI for the LanguageTool JSON API
Home Page: https://pylanguagetool.lw1.at/
License: MIT License
Python Library and CLI for the LanguageTool JSON API
Home Page: https://pylanguagetool.lw1.at/
License: MIT License
I mean a lot of other tools use the output of the cli languagetool.
java -jar languagetool-commandline.jar -l xx <filename>
If if could output the same format will be awesome
Hi ๐
This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.
Once you have closed this issue, I'll create seperate pull requests for every update as soon as I find one.
That's it for now!
Happy merging! ๐ค
Organize and document return codes
As LT expects 'true' or 'yes', the field should be set in api.py with
if enabled_only:
post_parameters["enabledOnly"] = 'true'
See line 285 in LT's TextChecker.java:
boolean useEnabledOnly = "yes".equals(parameters.get("enabledOnly")) || "true".equals(parameters.get("enabledOnly"));
"Packages No packages published" is displayed right now, fortunately this pointless section can be removed.
Edit repo page config to remove it (cog next to the description).
I am not making a PR as it is defined in proprietary github settings, not in a git repository - and I have no rights to modify repo settings.
Hi,
I noticed that only the CLI portion of this package is documented. I my humble opinion the Python API deserves some documentation too, especially since people are looking for an alternative to pyenchant.
Mind if I give it a go? I am fairly familiar with Sphinx and readthedocs setup as well as writing documentation.
I might throw in a little Sphinx extension, while I am at it ;)
Best
-Joe
Hi there,
I am a longtime LanguageTool user and I just stumbled across your library (thanks btw!).
While trying to incorporate this tool into my workflow, I came across the following error:
ValueError: Error: Your text exceeds the limit of 20000 characters (it's 25869 characters). Please submit a shorter text.
Now, I'm not familiar with the internal workings of the LanguageTool API, but would it be possible to split large text bodies into smaller chunks and to send multiple API requests?
organize errors, warnings, notices (with colors)
It would be awesome to be able to add this tool to pre-commit hooks. Any plans on adding this?
Client should support premium access.
It should be possible by adding the following lines into cli.py
p.add_argument("-U", "--username", env_var="USERNAME",
help="username for the languagetool premium API"
)
p.add_argument("-P", "--api-key", env_var="API_KEY", help="apiKey for the languagetool premium API",)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.