added ability to compute spelling features