← 返回命令列表

Linux command

proselint 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Check a text file

proselint [document.txt]

Check multiple files

proselint [*.md]

Output as JSON

proselint --json [document.txt]

Show version

proselint --version

Check from stdin

cat [document.txt] | proselint

Clear the cache

proselint --clean

说明

proselint is a linter for English prose. It checks for writing issues like clichés, jargon, redundancy, and common errors, helping improve clarity and style. The tool draws on advice from style guides and editorial best practices, providing actionable suggestions for better writing.

参数

-j, --json
Output in JSON format.
--config _file_
Path to configuration file.
--compact
Compact output format.
-d, --debug
Give verbose output.
-c, --clean
Clear the cache.
--demo
Run over built-in demo file.
--dump-config
Print current configuration.
--dump-default-config
Print default configuration.
-v, --version
Show version.
--help
Show help.

FAQ

What is the proselint command used for?

proselint is a linter for English prose. It checks for writing issues like clichés, jargon, redundancy, and common errors, helping improve clarity and style. The tool draws on advice from style guides and editorial best practices, providing actionable suggestions for better writing.

How do I run a basic proselint example?

Run `proselint [document.txt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -j, --json do in proselint?

Output in JSON format.