Do you want to trigger a new check of the text whenever the user presses any key? That’s not that easy, it would flood the server with requests. You’d have to develop some logic to prevent too many requests.
won’t help if text is edited through backspace/delete.
my idea: add a ten-seconds timer that is triggered when checked text is edited (making the text unchecked)
when it reaches 0 call doit()
this should limit the calls to a maximum of 0.1 Hz. (and reduce the chance of false positives due to checking a sentence in progress.)