An open API service indexing awesome lists of open source software.

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

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
```

![2023-01-15_18-11](https://user-images.githubusercontent.com/31192670/212542942-706c713f-ad7a-46fc-96ee-a29ac7d4f063.png)