Punctuation and grammar with using the built-in OS dictionaries

Is it possible to enable validation of grammar and punctuation using built-in dictionaries of the operating system (MacOs).
For example, as it makes TextEdit or Pages.app