I want to run the languagetool-commandline.jar by inputting the text directly.

I want to run the languagetool-commandline.jar by inputting the text directly.

For example,
java -jar languagetool-commandline.jar -l “en-US” “thi is the setnece.”

Please tell me how to achieve.

Try:

echo "This is an test" | java -jar languagetool-commandline.jar -l en-US -