ref #3666 first implementation of original spelling parser