sdcv
TLDR
Look up word
SYNOPSIS
sdcv [-u dict] [-n] [-e] [--data-dir dir] [options] [word]
DESCRIPTION
sdcv (StarDict console version) provides command-line dictionary lookup. It uses StarDict format dictionaries, which are widely available.
Dictionaries are stored in ~/.stardict/dic or system directories. Many languages and specialized dictionaries are available for download.
Interactive mode provides a prompt for multiple lookups. Non-interactive mode suits scripting and integration.
Fuzzy search finds similar words when exact matches fail. This helps with spelling variations or typos.
Multiple dictionaries can be searched simultaneously. Results from all are shown unless a specific dictionary is selected.
Output formatting supports terminal display and programmatic processing. JSON output enables integration with other tools.
PARAMETERS
-l, --list-dicts
List available dictionaries.-u DICT
Use specific dictionary.-n, --non-interactive
Non-interactive mode.-e, --exact-search
Exact matches only.-f, --fuzzy-search
Fuzzy search.--data-dir DIR
Dictionary data directory.--json
JSON output.--color
Colored output.--utf8-input
UTF-8 input.--utf8-output
UTF-8 output.-h, --help
Show help.
CAVEATS
Requires dictionary files to be installed. Quality varies by dictionary. Some dictionaries are large. Character encoding issues possible.
HISTORY
sdcv is the console version of StarDict, an open-source dictionary project started in 2003 by Hu Zheng. StarDict became popular for its cross-platform GUI, and sdcv extended it to command-line users.


