Skip to content

cli-dictionary/cli-dictionary

Repository files navigation

Cli-dictionary

A lightweight and fast dictionary from command line.

stars tags Language grade: Python


Languages

Language Abbreviation
English en
Portuguese_BR pt
Hindi hi
Spanish es
French fr
Japanese ja
Russian ru
German de
Italian it
Korean ko
Chinese (simplified) zh
Arabic ar
Turkish tr

Features

Setting default language

$ cli-dictionary --lang-default <lang>

after that, you don't need to type the language to search a word, example: $ cli-dictionary <word>

note: in all the examples below, the <lang> can be omitted.

Synonyms

$ cli-dictionary <word> <lang> -s or $ cli-dictionary <word> <lang> --synonyms

Examples

$ cli-dictionary <word> <lang> -e or $ cli-dictionary <word> <lang> --examples

Anki - Flashcards

  • card-types: basic, basic-reverse and cloze.
  • if your profile name have spaces, like: "User name", you need to use quote marks.

note: you don't need to create the deck and subdecks, the app does it itself.

Creating card

$ cli-dictionary <word> <lang> --card <type>

Changing profile before creating the card

$ cli-dictionary <word> <lang> --profile "User name" --card <type>

⚡ Installing

try versions in devmode from:

or simply: $ sudo snap install cli-dictionary

Using Anki Features

Just follow the steps in the documentation (is pretty simple ;D)

note: while you're using the dictionary to create cards, the anki app must be open, otherwise some weird errors will appear :P

🚀 Running

command: $ cli-dictionary <word> <lang>

☕ Contributing

Dependencies

Special Thanks

  • Rafael Ferrari whom made the logo | mailto, number: +55 14 988045194