IF found: Apply Rule1 Assign weight to Knowledge Apply Rule2 Assign weight to Synthesis Choose the greater value or positive value Assign question category Store in database FOR EACH_match in pattern : print join (keyword, category, question) Based on the algorithm, the question can be applied to two different rules i.e Rule 1 and Rule 2. Rule 1 states that the questions fall under the ‘Knowledge’ category meanwhile Rule 2 states that it can be categorised under the ‘Synthesis’ category. This raises a conflict as to which category the question should fall into. When this situation occurs, there is a need to introduce ‘category weighting’ to assist in the decision. The next subsection explains the assignment of weights for the category.