transcript.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ?- sentence(T,[the,boy,runs],[]).
  2. T = sentence(np(det(the), noun(boy)), vp(verb(runs))) .
  3. ?- sentence(T,[girls,like,an,apple],[]).
  4. T = sentence(np(noun(girls)), vp(verb(like), np(det(an), noun(apple)))) .
  5. ?- sentence(T,[a,government,that,conscripts,people,is,evil],[]).
  6. T = sentence(np(det(a), noun(government), rel(rel(that), vp(verb(conscripts), np(noun(people))))), vp(verb(is), adj(evil))) .
  7. ?- sentence(T,[the,boy,whom,the,girl,likes,likes,a,watermelon],[]).
  8. T = sentence(np(det(the), noun(boy), rel(rel(whom), np(det(the), noun(girl)), vp(verb(likes)))), vp(verb(likes), np(det(a), noun(watermelon)))) .
  9. ?- sentence(T,[the,boy,run],[]).
  10. false.
  11. ?- sentence(T,[girls,likes,an,apple],[]).
  12. false.
  13. ?- sentence(T,[a,government,that,conscripts,people,are,evil],[]).
  14. false.
  15. ?- sentence(T,[the,boy,who,the,girl,likes,likes,a,watermelon],[]).
  16. false.
  17. ?- sentence(T,[the,boy,which,the,girl,likes,likes,a,watermelon],[]).
  18. false.
  19. ?- sentence(T,[the,government,conscripts],[]).
  20. false.
  21. ?- sentence(T,[the,girl,runs,the,boy],[]).
  22. false.
  23. ?- prlogic([all,boys,run],L).
  24. L = all(x17, boys(x17)=>run(x17)) .
  25. ?- prlogic([all,boys,like,all,watermelons,that,contain,some,divine,flavor],L).
  26. L = all(x18, boys(x18)=>like(x18, all(x19, watermelons(x19)&contain(x19, exists(x20, flavor(x20)&divine(x20)))))) .
  27. ?- prlogic([some,boy,eats,some,apple],L).
  28. L = exists(x21, boy(x21), eats(x21, exists(x22, apple(x22)))) .
  29. ?- prlogic([some,governments,conscript,some,pacifist,people],L).
  30. L = exists(x23, governments(x23), conscript(x23, exists(x24, people(x24)&pacifist(x24)))) .
  31. ?- prlogic([all,governments,that,conscript,some,pacifist,people,are,evil],L).
  32. L = all(x25, governments(x25)&conscript(x25, exists(x26, people(x26)&pacifist(x26)))=>evil(x25)) .