SHARE
TWEET

Untitled

a guest Mar 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. noun(noun(boy)) --> [boy]  .
  3. noun(noun(box) ) --> [box] .
  4. noun(noun(room))  --> [room] .
  5. noun(noun(school))  --> [school] .
  6. noun(noun(woman) ) --> [woman] .
  7. noun(noun(man)) -->  [man].
  8. noun(noun(tree))  --> [tree].
  9. noun(noun(girl))  --> [girl].
  10. noun(noun(students)) --> [students] .
  11. noun(noun(professors))  -->  [professors] .
  12. noun(noun(lecturers) )  --> [lecturers].
  13. noun(noun(scientists) )  -->  [scientists].
  14. noun(noun(researchers) ) -->  [researchers].
  15. noun(noun(cat) ) -->   [cat].
  16. noun(noun(bat))  -->  [bat].
  17. noun(noun(hat))  -->  [hat] .
  18. noun(noun(ball))  --> [ball]  .
  19. noun(noun(envelope))  --> [envelope]  .
  20. noun(noun(shed))  --> [shed]  .
  21. noun(noun(building))  --> [building]  .
  22. noun(noun(lecturers))  --> [lecturers]  .
  23.  
  24.  
  25. verbC(verb(pushed)) --> [pushed].
  26. verbC(verb(stored))  --> [stored]  .
  27. verbC(verb(gave))  -->  [gave].
  28. verbC(verb(climbed))  --> [climbed]    .
  29. verbC(verb(watched) )  -->  [watched] .
  30. verbC(verb(admired))  --> [admired] .
  31. verbC(verb(appreciated)) --> [appreciated]  .
  32. verbC(verb(did))  -->  [did] .
  33. verbC(verb(made))  --> [made]  .
  34. verbC(verb(played)) --> [played].
  35. verbC(verb(pushed)) --> [pushed].
  36. verbC(verb(saved)) --> [saved].
  37. verbC(verb(ate)) --> [ate].
  38. verbC(verb(came)) --> [came].
  39. verbC(verb(fell)) --> [fell].
  40. verbC(verb(went)) --> [went].
  41. verbC(verb(knew)) --> [knew].
  42. verbC(verb(walk)) --> [walk].
  43. verbC(verb(wrote)) --> [wrote].
  44. verbC(verb(broke)) --> [broke].
  45.  
  46.  
  47. adj(adj(young)) -->[young].
  48. adj(adj(big)) -->[big].
  49. adj(adj(adorable))-->[adorable].
  50. adj(adj(large)) -->[large].
  51. adj(adj(empty)) -->[empty].
  52. adj(adj(white)) -->[white].
  53. adj(adj(some)) -->[some].
  54. adj(adj(old)) -->[old].
  55. adj(adj(brilliant)) -->[brilliant].
  56. adj(adj(many)) -->[many].
  57. adj(adj(talented)) -->[talented].
  58. adj(adj(bright)) -->[bright].
  59. adj(adj(every)) -->[every].
  60. adj(adj(clean)) -->[clean].
  61. adj(adj(clever)) -->[clever].
  62. adj(adj(better)) -->[better].
  63. adj(adj(red)) -->[red].
  64. adj(adj(plain)) -->[plain].
  65. adj(adj(nice)) -->[nice].
  66. adj(adj(brave)) -->[brave].
  67.  
  68.  
  69. adv(adv(quickly))--> [quickly].
  70. adv(adv(sadly))--> [sadly].
  71. adv(adv(slowly))--> [slowly].
  72. adv(adv(excitedly))--> [excitedly].
  73. adv(adv(carefully))--> [carefully].
  74. adv(adv(completely))--> [completely].
  75. adv(adv(boldly))--> [boldly].
  76. adv(adv(financially))--> [financially].
  77. adv(adv(openly))--> [openly].
  78. adv(adv(poorly))--> [poorly].
  79.  
  80. prop(prop(on))-->[on].
  81. prop(prop(of))-->[of].
  82. prop(prop(at))-->[at].
  83. prop(prop(in))-->[in].
  84. prop(prop(under))-->[under].
  85. prop(prop(above))-->[above].
  86. prop(prop(behind))-->[behind].
  87. prop(prop(from))-->[from].
  88. prop(prop(with))-->[with].
  89. prop(prop(after))-->[after].
  90. prop(prop(before))-->[before].
  91.  
  92.  
  93. det(det(the)) --> [the].
  94. det(det(a)) --> [a].
  95. det(det(an)) --> [an].
  96. det(det(this)) --> [this].
  97. det(det(that)) --> [that].
  98. det(det(these)) --> [these].
  99. det(det(those)) --> [those].
  100. det(det(all)) --> [all].
  101. det(det(both)) --> [those].
  102. det(det(each)) --> [each].
  103.  
  104. conj(conj(and)) --> [and].
  105.  
  106. %sentences
  107. s(s(NP,VP))  --> noun_phrase(NP), verb_phrase(VP).
  108. s(s(NP,VP,PP))  --> noun_phrase(NP), verb_phrase(VP), proposition_p(PP).
  109. s(s(NP,VP,AND,SENT))  --> noun_phrase(NP), verb_phrase(VP), conj(AND),s(SENT).
  110. s(s(PP,NP,VP))  --> proposition_p(PP),noun_phrase(NP), verb_phrase(VP).
  111. s(s(NP,PP,NP))  --> noun_phrase(NP),proposition_p(PP),noun_phrase(NP).
  112. s(s(NP,VP,PP,AND,SENT))  --> noun_phrase(NP), verb_phrase(VP),proposition_p(PP), conj(AND),s(SENT).
  113. s(s(PP,NP,VP,AND,SENT))  --> proposition_p(PP),noun_phrase(NP), verb_phrase(VP), conj(AND),s(SENT).
  114.  
  115. %nouns
  116. noun_phrase(noun_phrase(N)) --> noun(N).
  117. noun_phrase(noun_phrase(ADJ,N)) --> adjective_phrase(ADJ),noun(N).
  118. noun_phrase(noun_phrase(DET,N)) --> det(DET),noun(N).
  119. noun_phrase(noun_phrase(DET,ADJ,N)) --> det(DET),adjective_phrase(ADJ),noun_phrase(N).
  120. noun_phrase(noun_phrase(ADV,ADJ,N)) --> adverb_phase(ADV),adjective_phrase(ADJ),noun_phrase(N).
  121. noun_phrase(noun_phrase(DET,ADV,ADJ,N)) --> det(DET),adverb_phase(ADV),adjective_phrase(ADJ),noun_phrase(N).
  122. noun_phrase(noun_phrase(ADV,ADJ,N)) --> adverb_phase(ADV),adjective_phrase(ADJ),noun_phrase(N).
  123.  
  124. %%%%%%%with conjunction
  125.  
  126. noun_phrase(noun_phrase(N,AND,NP)) --> noun(N), conj(AND),noun_phrase(NP).
  127. noun_phrase(noun_phrase(ADJ,N,AND,NP)) --> adjective_phrase(ADJ),noun(N), conj(AND),noun_phrase(NP).
  128. noun_phrase(noun_phrase(DET, N,AND,NP)) --> det(DET),noun(N), conj(AND),noun_phrase(NP).
  129. noun_phrase(noun_phrase(DET,ADJ,N,AND,NP)) --> det(DET),adjective_phrase(ADJ),noun(N), conj(AND),noun_phrase(NP).
  130. noun_phrase(noun_phrase(DET,ADV,ADJ,N,AND,NP)) --> det(DET),adverb_phase(ADV),adjective_phrase(ADJ),noun(N), conj(AND),noun_phrase(NP).
  131. noun_phrase(noun_phrase(ADV,ADJ,N,AND,NP)) --> adverb_phase(ADV),adjective_phrase(ADJ),noun(N), conj(AND),noun_phrase(NP).
  132.  
  133.  
  134. %verb
  135. verb_phrase(verb_phrase(V)) --> verb(V).
  136. verb_phrase(verb_phrase(V,NP)) --> verb(V), noun_phrase(NP).
  137. verb_phrase(verb_phrase(ADV,VP)) --> adverb_phase(ADV),verb_phrase(VP).
  138. verb_phrase(verb_phrase(ADV,V,NP)) --> adverb_phase(ADV),verb(V),noun_phrase(NP).
  139. verb_phrase(verb_phrase(V,ADV,NP)) --> verb(V),adverb_phase(ADV),noun_phrase(NP).
  140.  
  141. verb(v(Z)) --> verbC(Z).
  142. verb(verb(V,AND,V)) --> verbC(V),conj(AND),verb(V).
  143.  
  144.  
  145. %adverb
  146. adverb_phase(adverb_phase(ADV))--> adv(ADV) .
  147. adverb_phase(adverb_phase(AV,DV))--> adv(AV),adverb_phase(DV).
  148.  
  149.  
  150. %adjective
  151. adjective_phrase(adjective_phrase(ADJ)) --> adj(ADJ).
  152. adjective_phrase(adjective_phrase(AJ,DJ))--> adj(AJ),adjective_phrase(DJ).
  153.  
  154. %propositions
  155. proposition_p(proposition_p(PP,NP))--> prop(PP),noun_phrase(NP).
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top