-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
Currently, define uses all remote (online) sources. A local, expandable dictionary is available on macOS, which would be a great source if it was accessible.
Unfortunately, it seems that the only way to access the dictionary's data is through Core Services, which would require Cocoa bindings to Go and native-compilation (think cgo). There may be another way around this, though.
Also, the only public APIs that exist return the definition in a formatted string format, not in a structured model, which would be a nightmare (if not potentially impossible) to consistently parse.
More information here (for later reference):
- https://developer.apple.com/documentation/coreservices/dictionary_services
- http://nshipster.com/dictionary-services/
- https://github.com/mattt/DictionaryKit
- https://gist.github.com/mattt/9453538
- https://apple.stackexchange.com/questions/90040/look-up-a-word-in-dictionary-app-in-terminal
- https://discussions.apple.com/thread/2679911