(in-package 'USER) ; FRUITS-wines (cl-add-rule 'fruit-wine-color @c{fruit} '(all appropriate-drink (fills color white))) (cl-add-rule 'fruit-wine-body @c{fruit} '(all appropriate-drink (fills body medium))) (cl-add-rule 'sweet-fruit-wine-flavor @c{sweet-fruit} '(all appropriate-drink (fills flavor moderate))) (cl-add-rule 'sweet-fruit-wine-sugar @c{sweet-fruit} '(all appropriate-drink (fills sugar sweet))) (cl-add-rule 'non-sweet-fruit-wine-flavor @c{non-sweet-fruit} '(all appropriate-drink (fills flavor delicate))) (cl-add-rule 'non-sweet-fruit-wine-sugar @c{non-sweet-fruit} '(all appropriate-drink (fills sugar off-dry))) ; DESSERTS (cl-add-rule 'dessert-appropriate-drink-body @c{dessert} '(all appropriate-drink (fills body full))) (cl-add-rule 'dessert-appropriate-drink-flavor @c{dessert} '(all appropriate-drink (fills flavor strong))) (cl-add-rule 'dessert-appropriate-drink-sugar @c{dessert} '(all appropriate-drink (fills sugar sweet))) (cl-add-rule 'cheese/nuts-dessert-appropriate-drink-color @c{cheese/nuts-dessert} '(all appropriate-drink (fills color red))) (cl-add-rule 'sweet-dessert-wine-color @c{sweet-dessert} '(all appropriate-drink (fills color white))) ; SEAFOOD (cl-add-rule 'seafood-wine-color @c{seafood} '(all appropriate-drink (fills color white))) (cl-add-rule 'shellfish-wine-body @c{shellfish} '(all appropriate-drink (fills body full))) (cl-add-rule 'shellfish-wine-flavor @c{shellfish} '(all appropriate-drink (all flavor (one-of moderate strong)))) (cl-add-rule 'oyster-shellfish-wine-sugar @c{oyster-shellfish} '(all appropriate-drink (fills sugar sweet))) (cl-add-rule 'non-oyster-shellfish-wine-sugar @c{non-oyster-shellfish} '(all appropriate-drink (fills sugar dry))) (cl-add-rule 'fish-wine-body @c{fish} '(all appropriate-drink (fills body medium))) (cl-add-rule 'fish-wine-sugar @c{fish} '(all appropriate-drink (fills sugar dry))) (cl-add-rule 'bland-fish-wine-flavor @c{bland-fish} '(all appropriate-drink (fills flavor delicate))) (cl-add-rule 'non-bland-fish-wine-flavor @c{non-bland-fish} '(all appropriate-drink (fills flavor moderate))) ; MEAT (cl-add-rule 'red-meat-wine-color @c{red-meat} '(all appropriate-drink (fills color red))) (cl-add-rule 'non-spicy-red-meat-wine-color @c{non-spicy-red-meat} '(all appropriate-drink (fills color red))) (cl-add-rule 'non-spicy-red-meat-wine-body @c{non-spicy-red-meat} '(all appropriate-drink (fills body medium))) (cl-add-rule 'non-spicy-red-meat-wine-flavor @c{non-spicy-red-meat} '(all appropriate-drink (all flavor (one-of strong moderate)))) (cl-add-rule 'non-spicy-red-meat-wine-sugar @c{non-spicy-red-meat} '(all appropriate-drink (fills sugar dry))) (cl-add-rule 'spicy-red-meat-wine-color @c{spicy-red-meat} '(all appropriate-drink (fills color red))) (cl-add-rule 'spicy-red-meat-wine-body @c{spicy-red-meat} '(all appropriate-drink (fills body full))) (cl-add-rule 'spicy-red-meat-wine-flavor @c{spicy-red-meat} '(all appropriate-drink (fills flavor moderate))) (cl-add-rule 'spicy-red-meat-wine-sugar @c{spicy-red-meat} '(all appropriate-drink (fills sugar dry))) (cl-add-rule 'non-red-meat-wine-color @c{non-red-meat} '(all appropriate-drink (fills color white))) (cl-add-rule 'non-red-meat-wine-body @c{non-red-meat} '(all appropriate-drink (fills body medium))) (cl-add-rule 'non-red-meat-wine-flavor @c{non-red-meat} '(all appropriate-drink (fills flavor strong))) (cl-add-rule 'non-red-meat-wine-sugar @c{non-red-meat} '(all appropriate-drink (fills sugar dry))) (cl-add-rule 'light-meat-fowl-wine-color @c{light-meat-fowl} '(all appropriate-drink (fills color white))) (cl-add-rule 'light-meat-fowl-wine-body @c{light-meat-fowl} '(all appropriate-drink (fills body medium))) (cl-add-rule 'light-meat-fowl-wine-flavor @c{light-meat-fowl} '(all appropriate-drink (fills flavor moderate))) (cl-add-rule 'light-meat-fowl-wine-sugar @c{light-meat-fowl} '(all appropriate-drink (fills sugar dry))) ;; Classic does not have defaults. This rule forces you to appropriate-drink ;; red wine with a dark meat fowl course - it doesn't give you ;; the choice of appropriate-drinking white, medium, moderate, dry wine instead. (cl-add-rule 'dark-meat-fowl-wine-color @c{dark-meat-fowl} '(all appropriate-drink (fills color red))) (cl-add-rule 'dark-meat-fowl-wine-body @c{dark-meat-fowl} '(all appropriate-drink (fills body light))) (cl-add-rule 'dark-meat-fowl-wine-flavor @c{dark-meat-fowl} '(all appropriate-drink (fills flavor delicate))) (cl-add-rule 'dark-meat-fowl-wine-sugar @c{dark-meat-fowl} '(all appropriate-drink (fills sugar dry))) (cl-add-rule 'pasta-with-spicy-red-sauce-wine-color @c{pasta-with-spicy-red-sauce} '(all appropriate-drink (fills color red))) (cl-add-rule 'pasta-with-spicy-red-sauce-wine-body @c{pasta-with-spicy-red-sauce} '(all appropriate-drink (fills body full))) (cl-add-rule 'pasta-with-spicy-red-sauce-wine-flavor @c{pasta-with-spicy-red-sauce} '(all appropriate-drink (fills flavor strong))) (cl-add-rule 'pasta-with-spicy-red-sauce-wine-sugar @c{pasta-with-spicy-red-sauce} '(all appropriate-drink (fills sugar dry))) (cl-add-rule 'pasta-with-non-spicy-red-sauce-wine-color @c{pasta-with-non-spicy-red-sauce} '(all appropriate-drink (fills color red))) (cl-add-rule 'pasta-with-non-spicy-red-sauce-wine-body @c{pasta-with-non-spicy-red-sauce} '(all appropriate-drink (fills body medium))) (cl-add-rule 'pasta-with-non-spicy-red-sauce-wine-flavor @c{pasta-with-non-spicy-red-sauce} '(all appropriate-drink (fills flavor moderate))) (cl-add-rule 'pasta-with-non-spicy-red-sauce-wine-sugar @c{pasta-with-non-spicy-red-sauce} '(all appropriate-drink (fills sugar dry))) (cl-add-rule 'pasta-with-heavy-cream-wine-color @c{pasta-with-heavy-cream-sauce} '(all appropriate-drink (fills color white))) (cl-add-rule 'pasta-with-heavy-cream-wine-body @c{pasta-with-heavy-cream-sauce} '(all appropriate-drink (fills body medium))) (cl-add-rule 'pasta-with-heavy-cream-wine-flavor @c{pasta-with-heavy-cream-sauce} '(all appropriate-drink (fills flavor moderate))) (cl-add-rule 'pasta-with-heavy-cream-wine-sugar @c{pasta-with-heavy-cream-sauce} '(all appropriate-drink (fills sugar dry))) (cl-add-rule 'pasta-with-light-cream-wine-color @c{pasta-with-light-cream-sauce} '(all appropriate-drink (fills color white))) (cl-add-rule 'pasta-with-light-cream-wine-body @c{pasta-with-light-cream-sauce} '(all appropriate-drink (fills body light))) (cl-add-rule 'pasta-with-light-cream-wine-flavor @c{pasta-with-light-cream-sauce} '(all appropriate-drink (fills flavor delicate))) (cl-add-rule 'pasta-with-light-cream-wine-sugar @c{pasta-with-light-cream-sauce} '(all appropriate-drink (fills sugar dry))) ;;(loop for i in (cl-concept-instances @meal-food) do ;; (cl-ind-add i `(fills appropriate-drink ,(gensym))))