moxie - jlombar1 - homework > pl Welcome to SWI-Prolog (Version 2.7.16) Copyright (c) 1993-1996 University of Amsterdam. All rights reserved. For help, use ?- help(Topic). or ?- apropos(Word). 1 ?- consult('grammar1.pro'). grammar1.pro compiled, 0.00 sec, 3,396 bytes. Yes 2 ?- sentence([the,dog,ate,the,crab],[]). Yes 3 ?- sentence([the,smelly,cat,chased,the,student],[]). Yes 4 ?- sentence([the,small,monster,stalked,the,crab],[]). Yes 5 ?- sentence([the,smelly,blue,dog,jumped,the,round,student],[]). Yes 6 ?- sentence([the,cat,wrote,the,ugly,dog],[]). Yes 7 ?- sentence([the,round,ugly,student,stalked,the,smelly,blue,monster],[]). Yes 8 ?- sentence([the,blue,round,crab,ate,the,small,ugly,dog],[]). Yes 9 ?- sentence([monster,ate,cat],[]). No 10 ?- sentence([the,monster,stalked,cat],[]). No 11 ?- sentence([the,ugly,boy,stalked,the,ugly,dog],[]).