languagetool-cli

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: Apache-2.0

README

languagetool-cli

A command line for LanguageTool grammar and style checking. One pure-Go binary, no API key, output that pipes into the rest of your tools.

Install

go install github.com/tamnd/languagetool-cli/cmd/languagetool@latest

Or download a prebuilt binary from the releases page.

Quick start

# Check a sentence for grammar issues (English by default)
languagetool check "This are wrong"

# Check in a different language
languagetool check "Je suis fatigue" --lang fr
languagetool check "Das ist falsch" --lang de

# List all supported languages
languagetool languages

# Pipe output as JSON
languagetool check "This are wrong" -o json

Output

Output is a table at the terminal and JSONL when you pipe, so languagetool check "..." | jq works with no flags.

Languages

LanguageTool supports over 60 languages. Use languagetool languages to see all available language codes.

License

Apache 2.0. See LICENSE.

Directories

Path Synopsis
Package cli builds the languagetool command tree on top of the languagetool library and the any-cli/kit framework.
Package cli builds the languagetool command tree on top of the languagetool library and the any-cli/kit framework.
cmd
languagetool command
Command languagetool is a single-binary CLI for LanguageTool grammar checking.
Command languagetool is a single-binary CLI for LanguageTool grammar checking.
Package languagetool is the library behind the languagetool command: the HTTP client, request shaping, and the typed data models for the LanguageTool API.
Package languagetool is the library behind the languagetool command: the HTTP client, request shaping, and the typed data models for the LanguageTool API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL