lookup command looks up words in a compiled dictionary.
odict lookup [flags] [dictionary path] [query strings...]
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)"
--format parameter accepts three values:
pp (pretty print).
|Threshold for splitting queries||❌||0|
|Whether to follow entry aliases||❌|
odict lookup ./eng.odict "excited (excite)"