General
Lab Material
Lab 1
Lab 2
Lab 3
Lab 4
Lab 5
Lab 6

Adding recursive rules

Extend the knowledge base so that sentences can be conjoined by and. So, Prolog should accept sentences like the nurse whistles and the bride sleeps or the nurse whistles and the bride sleeps and gogo fights.
Hint

Extend the knowledge base so that nouns can be modified by adjectives. That is, it should be able to handle noun phrases like

  • the sharp sword
  • the sharp pointy sword
  • the long sharp pointy sword
Hint

Back to lab 1.