I didn't even know there was one. I thank you for that. Is there an API that I can hook into (I'm thinking emacs here). Maybe a Swift script calling this: https://developer.apple.com/documentation/coreservices/14468...
Normally I would recommend going for something via Applescript but it seems like Dictionary.app doesn't expose anything via Applescript (though it totally should)