I was quoting Yankeedame there for another (characteristically inane) purpose, but yeah.
I once wrote a Snobol program which corrected text based on the rule "I before E except after C or when spoken as A as in neighbor, sleigh, aweigh, inveigh, ...."