Skip to content

kascote/dictionary_osx

Repository files navigation

dictionary_osx

Dart CLI for macOS Dictionary Services. Look up words using system dictionaries.

Usage

# List available dictionaries (grouped by kind)
dart run bin/dictionary_osx.dart -l

# Default: NOAD + Oxford American Writer’s Thesaurus
dart run bin/dictionary_osx.dart hello

# UK: ODE + Oxford Thesaurus of English
dart run bin/dictionary_osx.dart --uk colour

# Both regions
dart run bin/dictionary_osx.dart --us --uk colour

# Specific dictionary/dictionaries (comma-separated, by name or short name)
dart run bin/dictionary_osx.dart -d Wikipedia,Apple swift

# Show raw XML
dart run bin/dictionary_osx.dart --debug hello

Options

  • -l, --list — list available dictionaries, grouped by kind (Monolingual, Thesaurus, Reference, Idioms, Bilingual)
  • -d, --dictionary — dictionary name or short name; comma-separated for multiple. Overrides --us/--uk
  • --us — NOAD + Oxford American Writer’s Thesaurus (default if no flag)
  • --uk — ODE + Oxford Thesaurus of English
  • --debug — print raw XML after parsed output
  • -h, --help — show help

Reference

About

Dart CLI for macOS Dictionary Services. Look up words using system dictionaries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors