One way to address this is to also extract rules that use part-of-speech (POS) tags in place of words.
since words can have multiple POS tags, we would then need to infer POS tags for the words in order to determine which rule is applicable.