This a Python CLI script for reviewing foreign language vocab.
Python 3.6+ is required. Additional third-party libraries are required and can be installed using the following command: pip install -r requirements.txt
A set of vocab files are required. Example English/Italian vocab files are provided in ItalianVocab.
Vocab files are formatted as follows:
- Vocab files use the
.txt
extension. - Each line is a single vocab entry.
- Vocab entry lines use the format:
<lang1>;<lang2>
- Example:
hello;ciao
- Example:
- Equivalent individual words are separated with a
|
.- Example:
the cloud;la nuvola|nube
- Example:
- Equivalent translations are separated with a
/
.- Example:
the car;l'auto/la macchina
- Example:
- Append additional info in parenthesis.
- Example:
hello (formal);buongiorno
- Example:
- Literal translations are shown in parenthesis prefixed with
lit
:- Example:
good luck (lit: in the mouth of the wolf);in bocca al lupo
- Example:
The config.yaml
file top-level path
key points to the location of the vocab files. Additional keys are provided for various features of the script:
- Number of vocab to review.
- Redo missed answers.
- Enabling hint characters.
- Enabling text-to-speech.