0.0.9 • Published 6 years ago

terminal-lexicon v0.0.9

Weekly downloads
11
License
MIT
Repository
github
Last release
6 years ago

terminal-lexicon

npm npm

几乎每天都需要看英文文档,经常需要查单词,每次打开词典,输入后查词,感觉效率太低,而终端其实算是桌面上始终打开着的程序,由此有了此在终端中查单词的程序。

安装

本程序需要全局安装。

使用 yarn

yarn global add terminal-lexicon

使用 npm

npm install terminal-lexicon -g

使用

安装成功后,使用dict <word>即可查询单词word:

如:

# 查询单个单词
dict node
node:
🎧 音标:
     英  [nəʊd]     美  [noʊd]
🌈 释义:
     n. 节, 结节, 瘤, (戏剧情节的)曲折或纠纷
     [计算机] 节点
# 查询词组
➜ dict a hard nut to crack
a hard nut to crack:
✨ 音标:
     英[ə hɑːd nʌt tə kræk]     美[ə hɑːrd nʌt tə kræk]
🌈 释义:
     棘手的问题,难对付的人
# 中译英
➜ dict 前端工程师
前端工程师:
🌈 释义:
     Front-end Engineer

~
➜ dict Python工程师
Python工程师:
🌈 释义:
     Python Engineer
# 支持获取词汇的相关词汇(本功能的初衷在于辅助程序命名)
# 想要获取相关词汇,只需在所查单词之后添加 -r [n] 即可,n 代表相关单词个数,默认个数为0
➜ dict -r obtain
obtain:
✨ 音标:
     英[əb'teɪn]     美[əb'teɪn]
🌈 释义:
     vt. 获得, 得到
     vi. 通用, 流行, 存在
🍭 例句:
     The leech hangs about other people hoping to obtain money.
     > 那个吸血鬼依附于他人希望获得钱财。
     I haven't been able to obtain that book anywhere.
     > 我到处都没买到那本书。
     These conditions no longer obtain.
     > 这些条件已不复存在了。
🌎 近义词:
     01. access         相似度:100
     02. achieve        相似度:100
     03. attain         相似度:100
🌎 反义词:
     01. disperse       相似度:-100
     02. distribute     相似度:-100
     03. divide         相似度:-100
# 仅仅查询某个单词的反义词
➜ dict get -a 10
🌎 反义词
     01. avoid          相似度:-100
     02. disallow       相似度:-100
     03. drop           相似度:-100
     04. fail           相似度:-100
     05. forfeit        相似度:-100
     06. give           相似度:-100
     07. lose           相似度:-100
     08. offer          相似度:-100
     09. push           相似度:-100
     10. refuse         相似度:-100

# 仅仅查询某个单词的近义词
➜ dict get -s 5
🌎 近义词
     01. bring          相似度:100
     02. draw           相似度:100
     03. earn           相似度:100
     04. gain           相似度:100
     05. grab           相似度:100
# 查询英文释义
➜ dict en get
get
01   to receive or come to have possession, use, or enjoyment of:
     to get a birthday present; to get a pension.


02   to cause to be in one's possession or succeed in having available for one's use or enjoyment; obtain; acquire:
     to get a good price after bargaining; to get oil by drilling; to get information.

开发计划

  • 基于扇贝 api 的简单释义
  • 添加对词组的支持
  • 添加例句
  • 添加中译英
  • 添加相关词汇搜索,同义词和反义词
  • 分开展示同义词和反义词
  • 添加英文释义
  • 添加单词的计算机专业释义
  • 离线词库
  • 添加代码测试
  • 也许要加单词的自动补全
  • 也许会添加单词的纠错提示

如果你有什么好建议,欢迎在 issure 中提出,我们一起把这个词典做好.

词源

  • 扇贝单词 (非常优质的接口,感谢扇贝)
  • 百度翻译
  • dictionary.com
0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago