Skip to content
Drew Prentice edited this page Jan 24, 2015 · 4 revisions

Options

Global Options

-h|--http httpclient, curb, em_http, net_http_persistent, excon, rack

HTTP adapter

Default Value
:   net_http_persistent

-j|--json oj, yajl, json_gem, json_pure

JSON adapter

Default Value
:   oj

-o|--out filename.json or filename.xml

Output file

Default Value
:   None

-x|--xml ox, libxml, nokogiri, rexml

XML adapter

Default Value
:   rexml

-[fo|--](no-)force
Force overwrite

Overwrites existing JSON & XML files

--help
Show this message

-[v|--](no-)verbose
Prints parameters and options

--version
Display the program version

Commands

Command: ana

Fetches anagrams from Wordsmith

#####Options --case 0 - Lowercase, 1 - First Letter, 2 - Uppercase (default: 1) --exclude=string - Anagrams must exclude these words (default: none) --include=string - Anagrams must include this word (default: none) --lang=string - english,english-obscure,german,spanish,esperanto,french,italian,latin,dutch,portuguese,swedish,names (default: english) --limit=integer - Limits number of results returned (default: 10) --[no-]linenum - Show line numbers with anagrams --[no-]list - Show candidate word list only --maxletters=integer - Maximum number of letters in each word (default: none) --maxwords=integer - Maximum number of words in each anagram (default: none) --minletters=integer - Minimum number of letters in each word (default: none) --[no-]repeat - Repeat occurrences of a word OK

Command: help command

Shows a list of commands or help for one command

Gets help for the application or its commands. Can also list the commands in a way helpful to creating a bash-style completion function

Options
-c
List commands one per line, to assist with shell completion

Command: initconfig

Initialize the config file (~/.lyracyst.yml) using current global options

Initializes a configuration file where you can set default options for command line flags, both globally and on a per-command basis. These defaults override the built-in defaults and allow you to omit commonly-used command line flags when invoking this program

Options
--[no-]force
force overwrite of existing config file

Command: look word

Fetches word info from Onelook

Options
--[no-]source
Fetches resource links (verbose)

Command: rb

Rhymebrain operations

Options
--lang en, de, es, fr, ru, etc.

ISO639-1 language code (optional). Eg. en, de, es, fr, ru

Default Value
:   en

--max 10

(optional) The number of results to return. If you do notinclude this parameter, RhymeBrain will choose how many words to show based on how many good sounding rhymes there are for the word.

Default Value
:   None
Subcommands
Command: comb word

Fetches combined words (portmanteaus) from Rhymebrain.com

Command: inf word

Fetches word info from Rhymebrain.com

Command: rhy word

Fetches rhymes from Rhymebrain.com

Command: urb word

Fetches definitions from Urban Dictionary

Command: wmap word

Maps out word info

Command: wn

Wordnik operations

Options
--limit 5

Maximum number of results to return

Default Value
:   5

--[no-]canon
Use canonical

If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
Subcommands
Command: def word

Fetch definitions from Wordnik

Options

--defdict ahd,century,webster,wiktionary,wordnet or all

CSV list. Source dictionaries to return definitions from. If 'all' is received, results are returned from all sources. If multiple values are received (e.g. 'century,wiktionary'), results are returned from the first specified dictionary that has definitions. If left blank, results are returned from the first dictionary that has definitions. By default, dictionaries are searched in this order: ahd, wiktionary, webster, century, wordnet

Default Value
:   all

-p|--part noun,verb,adverb,adjective

Comma-separated list of parts of speech. See http://developer.wordnik.com/docs.html#!/word/getDefinitions_get_2 for list of parts.

Default Value
:   None
Command: ex word

Fetch examples from Wordnik

Options

-s|--skip 5

Results to skip

Default Value
:   0

--[no-]incdups
Show duplicate examples from different sources
Command: hyph word

Fetches hyphenation and syllable stresses from Wordnik. Primary stress is red, secondary stress is bright white.

Options

--source ahd

Get from a single dictionary. Valid options: ahd, century, wiktionary, webster, and wordnet.

Default Value
:   None
Command: ori word

Fetches etymologies from Wordnik

Command: phr word

Fetches bi-gram phrases from Wordnik

Options

--wlmi 13

Minimum WLMI(weighted mutual info) for the phrase.

Default Value
:   13
Command: pro word

Fetches pronunciations from Wordnik

Options

--pt IPA

Text pronunciation type

Default Value
:   None

ahd, arpabet, gcide-diacritical, IPA

--src ahd

Get from a single dictionary. Valid options: ahd, century, cmu, macmillan, wiktionary, webster, or wordnet

Default Value
:   None
Command: rel word

Fetches related words from Wordnik

Options

--rell 10

Restrict to the supplied relationship types

Default Value
:   10

--relt synonym

Limits the total results per type of relationship type. See http://developer.wordnik.com/docs.html#!/word/getRelatedWords_get_4 for a complete list of types.

Default Value
:   None