SMS: Grammatical analysis