Action to look up a word in the OS dictionary?

Is it possible to create an action that looks up a word in the OS dictionary?

If only one language/keyboard is installed, in that language, if there are more, the language is determined by a variable?

I am not asking for an action that makes the dictionary pop up or something like that but just to find out in an action if a string is an actual word in language X.

The system dictionary does not have any APIs that would support implementing an action like that. To some extent, I suppose spell-checking is already doing that for you, no?

There are likely some web APIs out there for work validation that could be used in an action, but I don’t have any specific leads or ideas for any.