#
# Rules for the PICKER project
#
#
# The problem is to choose which type of fruit is the best match.
#
# The input variables used are:
#
#      AR     - the "aspect ratio," used to approximate the shape
#      Color  - Red, Orange, Yellow, Green or something in between
#      Size   - the weight in kilograms
#
# These rules are designed to be used with the "best rule" inference
# method.  The rule with the highest activation wins, and the "answer"
# is the consequent of that rule.
#
# The data file for use with this project is FRUITDAT.TXT.


IF Color is RED and AR is Round and Size is Medium
	THEN Fruit is Apple;
If Color is YELLOW and AR is Thin and Size is Medium
	THEN Fruit is Banana;
If Color is GREEN and (AR is Round OR AR is Oval) and Size is Tiny
	THEN Fruit is Grape;
If (Color is YELLOW OR Color is ORANGE) and AR is Round and Size is Large
	THEN Fruit is Grapefruit;
If Color is YELLOW and AR is Oval and Size is Small
	THEN Fruit is Lemon;
If Color is GREEN and AR is Round and Size is Small
	THEN Fruit is Lime;
If Color is ORANGE and AR is Round and Size is Medium
	THEN Fruit is Orange;
If (Color is RED OR Color is ORANGE) and AR is Round and Size is Medium
	THEN Fruit is Peach;
If (Color is YELLOW AND Color is GREEN)
	and (AR is Oval) and (Size is Medium OR Size is Large)
	THEN Fruit is Pear;
If Color is RED and (AR is Oval OR AR is Thin) and Size is Tiny
	THEN Fruit is Strawberry;
If Color is ORANGE and AR is Round and Size is Small
	THEN Fruit is Tangerine;
