Postag in message

Is there a way to get the postag(s) of a word into the rule message? I would like to detect the ‘next’ tag for a certain tag?