previous | index | next

Exercise 7.33

This exercise allows articles "the", "a", and "an" to be ignored for the purposes of matching movie titles in the database. After completion you will be able to make these queries:
   (who is the director of a fish called wanda)
   (michael chrichton)

   (who is the director of fish called wanda)
   (michael chrichton)

   (who acted in the day of the jackal)
   ((edward fox) (terence alexander) (michel auclair) (alan badel) 
    (tony britton) (denis carey) (olga georges-picot) (cyril cusack))

   (who acted in day of the jackal)
   ((edward fox) (terence alexander) (michel auclair) (alan badel) 
    (tony britton) (denis carey) (olga georges-picot) (cyril cusack))

   (who acted in day of jackal)
   ((edward fox) (terence alexander) (michel auclair) (alan badel) 
    (tony britton) (denis carey) (olga georges-picot) (cyril cusack))
This requires the pattern/action pairs made by:
        (make-pattern/action  
	 '(who is the director of ...)
	 director-action)

        (make-pattern/action  
	 '(who acted in ...)
	 actors-action-for-7.33)
You will need to provide the action procedures director-action and actors-action-for-7.33.

Note:


previous | index | next