Check category of sentence and block