Skip to main content

Terminal Dictionary

Project description

Define
======

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

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 pronounciation? [Y/N] n

FLAGS
=====

Define has the following flags:

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

*-a/--audio* - Audio pronounciation 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

define-1.60.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file define-1.60.tar.gz.

File metadata

  • Download URL: define-1.60.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for define-1.60.tar.gz
Algorithm Hash digest
SHA256 1e5f5ecd07ce80137287ab69d383aa74b8584ac7685680420ef6c050726af086
MD5 ab74a0a395e3f6b5f4b97d14dfb59dc5
BLAKE2b-256 4c9722a47b70c731f7ea119e2418d05aa1f5f455604fd7da9d35a257234ac353

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page