Code for analysis for Spelling Project