summaryrefslogtreecommitdiff
path: root/readme.md
blob: 433d1ba5cd981ad9389c890c9e92178b0841d26f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
OED Query
==============

About
-----

Bash script for querying various info from Oxford English Dictionary (https://www.oed.com/)

Usage
-----

./oedquery.sh [flag] [word]

Flags
-d    define (default) - return first definition of each lexical category with an example sentence.  
-et   etymology - return etymology, if available, for given word.  
-a    audio - return first audio file for given word.  
-t    thesaurus - return synonyms for given word.  
-wod  word of the day - return defintion for Lexico's word of the day.  

This script designed to be used in IRC with a specific bot, but should work fine from the command line using stdin.

Note: you must provide your own App ID and App Key for access to the OED API. These can be got for free from their website.

Sources
-------

Oxford English Dictionary API (https://developer.oxforddictionaries.com/)