General
Material
Lecture 1
Lecture 2
Lecture 3
Lecture 4
Lecture 5

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 the practical session of day 4.