Rule Definition and Categorization