This repository has been archived by the owner on Jul 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sentences.pl
36 lines (28 loc) · 1.73 KB
/
sentences.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% David Ly, lydavid1, 1001435501
% student is not a complete noun phrase
test_sent([student,preferred,to,sleep], fails).
test_sent([the,student,sleep,the,teacher], fails).
% NP V_past inf_clause
test_sent([the,student,preferred,to,sleep]).
test_sent([the,student,expected,to,sleep]). % NP expected inf_clause (beginning with toinf)
test_sent([the,student,promised,to,sleep], fails). % promised/persuaded takes 3 constituents
test_sent([the,student,persuaded,to,sleep], fails).
% NP V_past NP inf_clause
test_sent([the,student,persuaded,the,teacher,to,sleep]).
test_sent([the,student,promised,the,teacher,to,sleep]).
% NP expected inf_clause (beginning with NP)
test_sent([the,student,expected,the,teacher,to,sleep]). % "the teacher to sleep" is a single constituent
test_sent([the,student,preferred,the,teacher,to,sleep], fails). % preferred cannot assign themes to 3 constituents, or its theme cannot be inf_clause that begins with NP
% NP V_past NP
test_sent([the,student,preferred,the,teacher]).
test_sent([the,student,persuaded,the,teacher], fails). % not handled as assignment says persuaded/promised takes 3 constituents
test_sent([the,student,promised,the,teacher], fails).
test_sent([the,student,expected,the,teacher], fails). % sounds like a fragment
% NP V_past S
test_sent([the,student,expected,the,teacher,persuaded,the,student,to,sleep]).
test_sent([the,student,preferred,the,teacher,persuaded,the,student,to,sleep], fails).
test_sent([the,student,preferred,the,teacher]). % NP V NP
% grammatically correct sentences our grammar does not parse
test_sent([the,student,promised], fails). % NP V
test_sent([the,student,promised,the,teacher], fails). % NP V NP
test_sent([the,student,promised,the,teacher,the,student,preferred,to,sleep], fails). % NP V NP S