Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samwho/lookup
A dictionary lookup script written in Ruby, using the Wordnik API.
https://github.com/samwho/lookup
Last synced: about 2 months ago
JSON representation
A dictionary lookup script written in Ruby, using the Wordnik API.
- Host: GitHub
- URL: https://github.com/samwho/lookup
- Owner: samwho
- Created: 2011-06-27T16:18:33.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-06-27T16:27:17.000Z (over 13 years ago)
- Last Synced: 2024-10-13T20:42:09.943Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install
To install, you will need to install 2 dependency gems:
gem install wordnik
gem install coloredThen download the `lookup` script file. Then make the `lookup` file executable:
cd /path/to/lookup
chmod +x ./lookupThen you will need to acquire an API key from http://developer.wordnik.com,
open up the lookup script and modify this line:config.api_key = 'your api key here'
Inserting your API key where necessary. Then you're all set!
# Usage
Using lookup is dead simple. First, either make sure the lookup script is
in your PATH or make sure you are in the same directory as it, and then
usage is as follows:lookup cat
This will lookup the word "cat". If you want some examples of the word
used in context, supply the -e or --examples flag:lookup cat -e
And that's it! Enjoy.