Command Line Usage - abuccts/wiktionary-lookup GitHub Wiki

Command Line Usage

An command line executable, wiktionary, is provided when the package is installed with setup.py.

Usage

# Install with setup
$ python setup.py install

# Show human readable information
$ wiktionary cat
English
    RP
        /kæt/
        /kat/
        [kʰat]
        [kʰaʔ]
    GenAm
        /kæt/
        [kʰæt]
        [kʰæʔ]
        [kʰeə̯t̚]
        [kʰæt̚]
        [kʰæʔt̚]

# Output information for certain language (default is English)
$ wiktionary --language Norman cat
Norman
    Standard
        /ka/

# Output machine readable output - suitable for parsing
$ wiktionary --json cat