An Integrated Framework for Processing Grammatically Ill-Formed Sentences