https://github.com/ybda/nw
Show new random word from list with translation in terminal. Linux / Mac
https://github.com/ybda/nw
bash bash-script english-learning language language-learning linux linux-app linux-shell oxford-dictionary
Last synced: about 1 month ago
JSON representation
Show new random word from list with translation in terminal. Linux / Mac
- Host: GitHub
- URL: https://github.com/ybda/nw
- Owner: ybda
- License: gpl-3.0
- Created: 2023-01-14T18:44:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-15T13:19:47.000Z (over 3 years ago)
- Last Synced: 2025-12-25T16:17:31.436Z (6 months ago)
- Topics: bash, bash-script, english-learning, language, language-learning, linux, linux-app, linux-shell, oxford-dictionary
- Language: Shell
- Homepage:
- Size: 66.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nw
`nw` is a basic bash script that shows you a new random word from your local list of words with translation. Might be helpful to learn a new language. Remove a word from the list when you sure you know it. In this repo for example placed list of Oxford 3000 + Oxford 5000 in `oxford_3000_5000.list` file.
# Installation
- Install required dependencies: [translate-shell](https://github.com/soimort/translate-shell), [bat](https://github.com/sharkdp/bat)
- Put `nw` and any list of words (you could use oxford list from this repo) wherever you want
- Change first few variables in `nw` as you need (in variables you may want to change paths and languages).
# Usage
```
USAGE:
nw [OPTIONS]
OPTIONS:
-d enable dictionary mode for translate-shell
-p disable bat's paging
-P enable bat's paging
-e edit dictionary
-b edit this bash script
--help display this help and exit
EXAMPLES:
nw Basically show new word
nw -d Show new word in dictionary mode
nw -e Edit your list of words
nw -b Edit this bash script
while true; do nw -P; done Infinite repeat of new words with paging
```
