https://github.com/xingjian-zhang/cmdictionary
A light, pure and convenient command-line dictionary that helps you focus on memorizing words.
https://github.com/xingjian-zhang/cmdictionary
cli demo dictionary emojis python terminal terminal-app
Last synced: 6 months ago
JSON representation
A light, pure and convenient command-line dictionary that helps you focus on memorizing words.
- Host: GitHub
- URL: https://github.com/xingjian-zhang/cmdictionary
- Owner: xingjian-zhang
- License: mit
- Created: 2021-03-20T14:48:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-18T14:37:08.000Z (about 4 years ago)
- Last Synced: 2025-04-11T05:58:17.879Z (6 months ago)
- Topics: cli, demo, dictionary, emojis, python, terminal, terminal-app
- Language: Python
- Homepage:
- Size: 484 KB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CMDictionary
A **light**, **pure** and **convenient** commandline dictionary that helps you focus on memorizing words.
## Features
### Detailed Help Information
### Detailed Explanations and Examples
### Track Your Recently-Memorized Words
### Auto-Completion (Experiment)

**Note**: The suggestions are ranked by word frequencies. Unfortunately, windows system is not compatible with python `tab` completion. See details [here](https://stackoverflow.com/questions/1081405/python-tab-completion-in-windows).## Note
1. You may need to use [Windows Terminal](https://github.com/microsoft/terminal) to see the emojis.
2. You need internet connection to get the meanings of words at the first time.## OS
1. Linux
2. Windows
3. MacOS
## Install```
python setup.py install
```**Note**: Do **NOT** use `pip install cmdict` because there is a package called `cmdict` written by others in the pip repo. By doing this you will download the wrong package. I am still looking for workaround for this.
## Run
```
python -m cmdict
```## Customize Your Vocab List
Just replace `cmdict/data/words.txt` with your own vocab list. The default one is [derekchuank/high-frequency-vocabulary](https://github.com/derekchuank/high-frequency-vocabulary/blob/master/20k.txt)## TODO List
- [x] Add cache to reduce requests.
- [ ] Add args to toggle emoji output.
- [x] Add vocabulary auto-completion support.
- [x] Release python module.
- [ ] Give a prompt to enforce saving OOV words. e.g. `xxxxx seems not an English word. Do you want to save xxxxx ? y/[n]`