Labels

Tuesday, March 16, 2021

Open source grammar check tool

pyLanguagetool

pip install pylanguagetool

# pipe text to pylanguagetool
echo "This is a example" | pylanguagetool

# read text from a file
pylanguagetool textfile.txt

# read text from stdin
pylanguagetool < textfile.txt

# read text from the systems clipboard
pylanguagetool -c # get text from system clipboard

Reference:
https://github.com/Findus23/pyLanguagetool

No comments:

Post a Comment