GithubHelp home page GithubHelp logo

bchao1 / vocabs Goto Github PK

View Code? Open in Web Editor NEW
240.0 5.0 18.0 8.28 MB

๐Ÿ“š A lightweight online dictionary integration to the command line. No browsers. No paperbacks.

Home Page: https://pypi.org/project/vocabs/

Python 100.00%
cli words english vocabulary command-line-tool oxford dictionary

vocabs's Introduction

๐Ÿ“š vocabs



๐Ÿ“š A lightweight online dictionary integration to the command line. No browsers. No paperbacks.


Setting Up

$ pip install vocabs

Features

๐Ÿ“† Word of the Day!

๐Ÿ“ˆ Trending words!

โ“ Directly query words from the command line.

๐Ÿ““ Save words to your local dictionary.

๐Ÿ“ Add notes to saved words.

๐ŸŽฎ Interactive word game to hone your vocabulary skills.

So how is this different from dict ?

dict is the client for DICT, or the Dictionary Server Protocol on Unix-like platforms. It is used to query natural language dictionaries without firing up a bloaty browser, which tremendously slows down your workflow.

Vocab aims to do the same as dict, only with some differences:

  • Less verbose result (since Vocab only uses one source).
  • Can save words to local client dictionary pickle file.
  • Can add notes to a saved word.
  • Includes a interactive word-quiz feature.
  • With colors ๐ŸŽจ!

All in all, Vocab is a great tool for fast word queries with easy-to-read definitions, and a good support for ESL users.

Requirements

and the following libraries are required.

Running

๐Ÿ”ฅ Launch vocab anywhere on your terminal.

$ vocab

Usage

$ vocab

Options:
    --mode, -m ['query', 'edit', 'dict', 'interactive']
    --file, -f <path to word list>
    --reset, -r
    --count, -c
    --lucky, -l
    --trend, t

Feeling Lucky

๐Ÿ“† Word of the Day.

$ vocab -l

Trending Words

๐Ÿ“ˆ Shows a list of frequently searched words.

$ vocab -t

Query Mode

โ“ Directly search and save unknown words from the command line.

$ vocab -m query

Dictionary Mode

๐Ÿ““ Scroll though pages to search for saved words.

$ vocab -m dict

Edit mode

โœ๏ธ Edit your save words and add notes.

$ vocab -m edit

Interactive Mode

๐ŸŽฎ Test your vocabulary skills with the interactive mode.

$ vocab -m interactive

Load Word List

๐Ÿ“œ Load a list of words from to your local dictionary.

$ vocab -f <path to file>

Count Total Words

๐Ÿ”ข Count number of words saved in your local dictionary.

$ vocab -c

Reset Local Dictionary

$ vocab -r

Help

$ vocab -h

Todo

  • Synonyms / Antonyms.

vocabs's People

Contributors

bchao1 avatar eedev avatar mbharanya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vocabs's Issues

Not working in windows

installed using pip package and tried in windows platform.
Got error "'vocab' is not recognized as an internal or external command,
operable program or batch file."

System install

Vocab cannot be installed as a system package currently because it write to its source location:

Traceback (most recent call last):
  File "/usr/host/bin/vocab", line 35, in <module>
    main()
  File "/usr/host/bin/vocab", line 17, in main
    app = App()
  File "/usr/lib/python3.7/site-packages/vocab/lib/app.py", line 24, in __init__
    os.mkdir(config.DICT_DIR)
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.7/site-packages/vocab/local'

Writing to user owned folders (like xdg directories) could fix this problem.

This software looks promising and I can't wait to add a package upstream ^^

Argument form.

For example, would it be better if the query mode is changed to 'vocab query [word to query]' rather than launching 'vocab' in query mode, then searching for words in the program?

Full command line support.

Support left, right cursor movement, autofill with tab, etc. To my knowledge, currently there isn't a library that does that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.