How can I refresh the macOS dictionary?
I figured this out myself in the end. One needs to relaunch the com.apple.applespell service (from the command line).
launchctl stop com.apple.applespell
launchctl start com.apple.applespell