You can use Grammarly via an API, or simply submit text in a web interface.
It's a keylogger in the same way Vim is a keylogger.