From Caxton’s press in 1476 to our time, some pretty definite spelling changes have taken place, but spelling changes became like the slow movement of a glacier. In contrast, changes in pronunciation didn’t slow down quite so much. Thus, we spell knight with that k and gh while no longer pronouncing those letters. The spelling of the word became standardized while pronunciation moved ahead.

