lookup

The ODict lookup command looks up words in a compiled dictionary.

Usage

odict lookup [flags] [dictionary path] [query strings...]

Fallbacks

While lookup accepts a list of plain text strings to lookup, you can also specify “fallback” words to return in case an entry for a word cannot be found. This can often times be helpful in case a conjugated form of a word cannot be found, but its base form (lemma) can.

Fallbacks are specified via parentheses. For example, if you are attempting to lookup “threw” but would like to fallback to “throw” if “threw” cannot be found:

odict lookup eng.odict "threw (throw)"

Output Formats

The --format parameter accepts three values: json, xml, or pp (pretty print).

Flags

NameAliasDescriptionRequired?Default
--split-sThreshold for splitting queries0
--format-fOutput formatpp
--follow-FWhether to follow entry aliasestrue

Example

odict lookup ./eng.odict "excited (excite)"