I didn’t add the Writing Tools > Proofread menu item to the app, but I was wondering if there was some way to trigger it in code?
Nothing in native code that I can see . You might be able to get at it with AppleScript and UI scripting.