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 0
/
Copy pathGrammar
124 lines (84 loc) · 4.79 KB
/
Grammar
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
% David Ly, lydavid1, 1001435501
% Sentence-level structures without auxiliary verbs
S -> NP_s VP
S -> NP_s VP AdvP % allows sentence-ending adverbs
% Sentence-level with auxiliary verbs
S -> NP_s VP-Aux
S -> NP_s VP-Aux AdvP
% NOUN PHRASES
NP_s -> NPro_s | NPrp | NComP % NP_s (subject noun phrase)
NP_o -> NPro_o | NPrp | NComP % NP_o (object noun phrases)
NComP -> NCountP | NMassP % NComP (common noun phrase)
NCountP -> NVowelP | NConsonantP % NCountP (count noun phrase)
NVowelP -> Det-v NVowel % NVowelP (vowel sound noun phrase)
NConsonantP -> Det-c NConsonant % NConsonant (consonant sound noun phrase)
NMassP -> Det-m NMass | NMass % NMassP (mass noun phrase)
NComP -> NComP PP % recursively modify common noun phrases
NComP -> Det AdjP | AdjP % only common noun phrases can be modified with adjectives
% ADJECTIVE/PREPOSITIONAL/ADVERBIAL PHRASES
AdjP -> Adj AdjP | Adj NMass | Adj NVowel | Adj NConsonant % adjective phrase, allows for a chain of adjectives
PP -> P NP_o % prepositional phrase
AdvP -> Adv AdvV | Adv % adverbial phrase
% 3.1 Verb Phrases using intransitive verbs in simple past tense, includes no auxiliaries
% It's important to distinguish between VP with and without aux, as 3.3 will have embedded VP
% and something like 'I want to will have eaten' makes no sense
VP -> Vi-sp % regular intransitive verb structure
VP -> AdvP Vi-sp % and with an adverb before the verb
VP -> AdvP VP % adverb right before a verb phrase without aux
VP -> VP PP % preposition after a verb phrase without aux
VP-Aux -> VP-Aux PP % preposition after a verb phrase with aux
% 3.2 Auxiliary System For Intransitive Verbs + Existential Passive
VP-Aux -> Aux-Vi Vi | Aux-Vi AdvP Vi % auxiliary involving an intransitive verb in bare stem form
VP-Aux -> Aux-Vi-gp Vi-gp | Aux-Vi-gp AdvP Vi-gp % auxiliary involving an intransitive verb in gerundive participle form
VP-Aux -> Aux-Vi-pp Vi-pp | Aux-Vi-pp AdvP Vi-pp % auxiliary involving an intransitive verb in past participle form
VP-Aux -> Aux-Vt-pp Vm-pp | Aux-Vt-pp AdvP Vm-pp % auxiliary involving a mono-transitive verb in past participle form
% [0001] Passive (I am eaten/Nadia is eaten)
% passive verb has to be transitive in past participle form
% for ditransitive verbs: requires an NP after (I am given a cat/Nadia is given a cat) -> maybe don't account for ditransitive here
Aux-Vt-pp -> AuxPassive
% [0010] Progressive (I am eating/Nadia is eating)
Aux-Vi-gp -> AuxProgressive
% [0011] Progressive Passive (I am being eaten/Nadia is being eaten)
Aux-Vt-pp -> AuxProgressive AuxProgressivePassive
% [0100] Perfect (I have eaten/Nadia has eaten)
Aux-Vi-pp -> AuxPerfect
% [0101] Perfect Passive (I have been eaten/Nadia has been eaten)
Aux-Vt-pp -> AuxPerfect AuxPerfectPassive
% [0110] Perfect Progressive (I have been eating/Nadia has been eating)
Aux-Vi-gp -> AuxPerfect AuxPerfectProgressive
% [0111] Perfect Progressive Passive (I have been being eaten/Nadia has been being eaten)
Aux-Vt-pp -> AuxPerfect AuxPerfectProgressive AuxProgressivePassive
% [1000] Modal (I will eat/Nadia will eat)
Aux-Vi -> AuxModal
% [1001] Modal Passive (I will be eaten/Nadia will be eaten)
Aux-Vt-pp -> AuxModal AuxModalPassive
% [1010] Modal Progressive (I will be eating/Nadia will be eating)
Aux-Vi-gp -> AuxModal AuxModalProgressive
% [1011] Modal Progressive Passive (I will be being eaten/Nadia will be being eaten)
Aux-Vt-pp -> AuxModal AuxModalProgressive AuxProgressivePassive
% [1100] Modal Perfect (I will have eaten/Nadia will have eaten [currently: Nadia will has eaten -> wrong])
Aux-Vi-pp -> AuxModal AuxModalPerfect
% [1101] Modal Perfect Passive (I will have been eaten/Nadia will have been eaten)
Aux-Vt-pp -> AuxModal AuxModalPerfect AuxPerfectPassive
% [1110] Modal Perfect Progressive (I will have been eating/Nadia will have been eating)
Aux-Vi-gp -> AuxModal AuxModalPerfect AuxPerfectProgressive
% [1111] Modal Perfect Progressive Passive (I will have been being eaten/Nadia will have been being eaten)
Aux-Vt-pp -> AuxModal AuxModalPerfect AuxPerfectProgressive AuxProgressivePassive
% 3.3 Subcategorization Rules
% NP frame
VP -> Vm-sp NP_o
% NP NP frame
VP -> Vd-sp NP_o NComP
% 'that' S frame
VP -> Vm-sp-that RelativePronoun S
VP -> Vd-sp-that NP_o RelativePronoun S
% VP-to frame
VP -> Vm-sp-to ParticleTo V-inf-P
VP -> Vd-sp-to NP_o ParticleTo V-inf-P
V-inf-P -> Vm-to ParticleTo V-inf-P
V-inf-P -> Vd-to NP_o ParticleTo V-inf-P
V-inf-P -> Vi | Vm NP_o | Vd NP_o NComP
% allows adverbs to modify a verb in a VP-to frame
V-inf-P -> AdvP V-inf-P
% special case for was/were verb
VP -> V-was NP_o | V-was PP | V-was AdvP PP