Adding a mapper function to map all possible specialized rules in