4 个版本
0.1.3 | 2021年6月21日 |
---|---|
0.1.2 | 2021年4月18日 |
0.1.1 | 2021年2月17日 |
0.1.0 | 2021年1月31日 |
#3 在 #thesaurus
18KB
133 行
thes
一个完全离线的词典 CLI 工具(用 Rust 编写)
安装
cargo install thes
用法
基本用法
$ thes amazing
surprising
astonishing
impressive
awing
awesome
awful
awe-inspiring
thes
也可以从通过 stdin 管道传入的数据中获取同义词
$ echo "wonderful" | thes
grand
fantastic
marvelous
extraordinary
wondrous
howling
rattling
tremendous
marvellous
terrific
thes
可以水平打印同义词而不是默认的垂直打印
$ thes great --horizontal
avid zealous eager enthusiastic smashing not bad peachy slap-up nifty swell good cracking dandy bully groovy corking neat keen bang-up enceinte gravid large pregnant heavy with child expectant big majuscule capital uppercase extraordinary outstanding important of import
thes
可以通过 type
标签根据它们的语态过滤结果
$ thes good -t noun
commodity
trade good
goodness
thes
可以通过 verbose
标签打印带有语态的同义词
$ thes cool -v
air-cooled (Adjective)
cold (Adjective)
precooled (Adjective)
air-conditioned (Adjective)
caller (Adjective)
water-cooled (Adjective)
chilly (Adjective)
chill (Adjective)
composed (Adjective)
nerveless (Adjective)
coolheaded (Adjective)
fashionable (Adjective)
stylish (Adjective)
unqualified (Adjective)
unemotional (Adjective)
unagitated (Adjective)
unfriendly (Adjective)
unresponsive (Adjective)
assuredness (Noun)
poise (Noun)
sang-froid (Noun)
aplomb (Noun)
cool down (Verb)
chill (Verb)
cool off (Verb)
命令行参数
thes 0.1.3
Grant Handy <grantshandy@gmail.com>
Offline CLI Thesaurus Tool
USAGE:
thes [FLAGS] [OPTIONS] [WORD]
FLAGS:
-h, --help Prints help information
--horizontal Prints synonyms horizontally
-s, --shell Opens an interactive thesaurus shell
-V, --version Prints version information
-v, --verbose Prints verbose output, this includes parts of speech for each word
OPTIONS:
-t, --type <PART OF SPEECH> Select what parts of speech the synonyms returned will have [possible values: verb,
adjective, adverb, noun]
ARGS:
<WORD> Word to find synonyms for
依赖项
~1–12MB
~83K SLoC