GitHub - Mckinsey666/Vocab: ? A lightweight online dictionary integration to the...
source link: https://github.com/Mckinsey666/Vocab
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
? Vocab
? A lightweight online dictionary integration to the command line. No browsers. No paperbacks.
Features
❓ Directly query words from the command line.
? Save words to your local dictionary.
? Add notes to saved words.
? Interactive word game to hone your vocabulary skills.
So how is this different from dict
?
dict
is the client for DICT, or the Dictionary Server Protocol on Unix-like platforms. It is used to query natural language dictionaries without firing up a bloaty browser, which tremendously slows down your workflow.
Vocab
aims to do the same as dict
, only with some differences:
- Less verbose result (since
Vocab
only uses one source). - Can save words to local client dictionary pickle file.
- Can add notes to a saved word.
- Includes a interactive word-quiz feature.
- With colors ?!
All in all, Vocab
is a great tool for fast word queries with easy-to-read definitions, and a good support for ESL users.
Requirements
and the following libraries are required.
Setting up
- Clone the git repository
Vocab
. - In
/Vocab/lib/config.py
, modifyDICT_PATH
,DICT_DIR
to the ABSOLUTE PATH of the local dictionary file on your computer. - In root, type
vi ~/.bashrc
. Append the following at the end of the bashrc file :export PATH=$PATH/<ABSOLUTE PATH to git repo>
Running
? Launch vocab
anywhere on your terminal.
After launching
Vocab
for the first time, a directory./local
will be created inside the git repo, and an empty pickle filedict
will be stored in./local
. This path can be modified in./lib/config.py
.
Usage
$ vocab
Options:
--mode, -m ['query', 'edit', 'dict', 'interactive']
--file, -f <path to word list>
--reset, -r
--count, -c
Query Mode
❓ Directly search and save unknown words from the command line.
$ vocab -m query
Dictionary Mode
? Scroll though pages to search for saved words.
$ vocab -m dict
Edit mode
✏️ Edit your save words and add notes.
$ vocab -m edit
Interactive Mode
? Test your vocabulary skills with the interactive mode.
$ vocab -m interactive
Load Word List
? Load a list of words from to your local dictionary.
$ vocab -f <path to file>
Count Total Words
? Count number of words saved in your local dictionary.
$ vocab -c
Reset Local Dictionary
$ vocab -r
Help
$ vocab -h
Todo
- Synonyms / Antonyms.
- Full command line support (left, right keys, autofill).
- Search history (up, down keys).
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK