A terminal etymology viewer. Fetches and parses from Wiktionary to discover the word's ancestry and the Google Books Ngram API to create a usage graph of the word provided.
Run etty <word> to output a graph of the word's ancestry in your shell alongside a sparkline of the word's usage over time.
You may also a run etty <word> -o <FILE> to render the graph to the file location provided as a DOT file, or as a bitmap faithfully recreating the style of Google's since-removed etymological ancestry graph.
cargo install --git https://github.com/rjindael/ettyOr, from a local checkout:
git clone https://github.com/rjindael/etty
cd etty
cargo install --path .You may also run unit tests (formatting/parser/API) with cargo test.
etty [OPTIONS] <WORD>
Options:
-l, --lang <LANG> Wiktionary language code to look the word up in (en, la, fr, grc, ...) [default: en]
--no-color Disable colored output
--short Print the etymology as text instead of drawing the graph
--width <WIDTH> Override the detected terminal width
-o, --output <FILE> Save the graph to a file
-e, --etymology <N> Default etymology number to choose from (1-indexed), defaults to first
-h, --help Print help
-V, --version Print versionExamples:
etty alphabet
etty morpheme
etty democracy --width 100
etty mat --output mat.png # outputs a graph of the word 'mat' as a PNG file
etty saw --output saw.dot # outputs a graph of the word 'saw' as a DOT Graphviz file
etty meretricius --lang la # look up a Latin word directly
etty whisky --short # print etymology info in one lineNO_COLOR is also respected if set.
etty is licensed under the MIT license. A copy of it has been included with etty.
etty uses the Liberation font family, a project licensed under the SIL Open Font License (OFL).