Code Monkey home page Code Monkey logo

define's Introduction

Define Build Status

Define is a terminal dictionary script that uses wordnik for definitions. Supports audio pronunciation

Example:

$define love

LOVE:

A deep, tender, ineffable feeling of affection and solicitude toward a person, such as that arising from kinship, recognition of attractive qualities, or a sense of underlying oneness.

INSTALLATION

Installing define is easy:

Using pip:

$ sudo pip install define

On Arch:

$ yaourt -S define

Manual Installation:

$ sudo python setup.py install You will need an api key from wordnik, get one from developer.wordnik.com and edit the "key" variable inside the script API key is now included in the script

Notes for Ubuntu 15.04 (may apply to other versions): To enable pip you'll need to add universe to your sources.

$ echo "deb http://archive.ubuntu.com/ubuntu/ vivid universe" | sudo tee -a "/etc/apt/sources.list"

$ sudo apt-get update

$ sudo apt-get install python-pip

To make use of audio feature if you install with pip. You'll need to install the gstreamer pacakge.

$ sudo apt-get install gstreamer1.0-tools

Using Audio

Audio can be used in define with the -a or --audio flag.

$ define --audio love

LOVE:

A deep, tender, ineffable feeling of affection and solicitude toward
a person, such as that arising from kinship, recognition of
attractive qualities, or a sense of underlying oneness.

Would you like to hear audio pronunciation? [Y/N] n

FLAGS

Define has the following flags:

-h/--help - Display help and exit.

-a/--audio - Audio pronunciation of keyword.

-t/--thesaurus - Thesaurus results for keyword.

-u/--urban - Search Urban Dictionary for results instead of Wordnik.

-l/--local - Search keywords using local dict and dictd dictionary (NOTE: This currently only works with the gcide dictionary, no other dictionary will work at the moment)

define's People

Contributors

coldsauce avatar professorjamesmoriarty avatar radek-sprta avatar sethdusek avatar

Watchers

 avatar

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.