Add rule-specific class to each entry