8000 GitHub - rjindael/etty: A terminal etymology viewer · GitHub
[go: up one dir, main page]

Skip to content
rjindaelPublic

About

A terminal etymology viewer

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

etty

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.

Preview

Terminal

Graph

Install

cargo install --git https://github.com/rjindael/etty

Or, 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.

Usage

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 version

Examples:

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 line

NO_COLOR is also respected if set.

License

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).

About

A terminal etymology viewer

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0