It's easy enough to make a script place a
' into words which need it, because you could just make a list of all the words that need it.
But for actually correct grammar that would be quite tricky. You would just actually have to make your own Word Spell Check