A dictionary look up app designed for the command line user. An example Latin dictionary is provided, feel free to update as your contribution, or to add other languages.
-
Navigate to the latest release. Download an archive for your system from there (.zip or .tar.gz files).
-
Unzip it, and move to the created directory. You may want to add this folder to your shell path.
Ensure the directory created by installation instructions is in the shell path (or you're in it.)
At the commandline, run: python cli.py {dictionary file} {config file}
. Ensure the python
command points to python 3.6 at least. If it does not, but python3
or python3.6
do, use them instead. The dictionary file can be any csv file in the format defined below. Included in this repository is a limited Latin dictionary, latin.csv
. By default latin.json
will be used as the config file, if this parameter is not supplied. You can use it with the following command.
python cli.py latin.csv
This produces a prompt.
>
At this prompt you can type your search term.
> puella
1 result found.
puella, puellae
noun - 1st Declension, feminine
girl
To exit, press CTRL+C.
-
Should be saved as
.csv
-
Should be excel-compatible
-
Headers:
-
word
- used to store the searchable word
-
type
- language-specific, usually 'noun', 'verb', etc
-
data
- any extra data about the word. if there is none, use a dash
-
- any extra data about the word. if there is none, use a dash
-
defi
- the definition of the word
-
-
delimiter: a comma -
,
-
escape character: a pair of double quotes surrounding the element -
""