1%                     Arabic Link Grammar Parser
2%
3% Copyright (c) 2006 Warren Casbeer and Jon Dehdari
4%
5% Dictionary version number is 5.0.1 (formatted as V5v0v1+)
6<dictionary-version-number>: V5v0v1+;
7<dictionary-locale>: C+; % Only the English alphabet is in use here
8
9
10% Link Types:  [Forms in brackets roughly equate with English Link Grammar]
11% A         Adj's [A]
12% AUX       Aspectual/Tense verb [To/Pg]
13% C         Complementizer [TH]
14% CC        Coordinating Conjunction
15% CCO       Coordinating Object
16% CCS       Coordinating Subject
17% CCV       Coordinating Verbs
18% COMPARE   Comparative constructions [MV*]
19% D         Determiner [D]
20% G         Proper nouns [G]
21% IV_PRE    Imperf. Verb prefix
22% IV_SUFF   Imperf. Verb suffix
23% NEG       Negation [N]
24% NUMB      Number [Dn]
25% NPOSS     Possesive Morpheme (for now)
26% O         Object [O]
27% P         Preposition [MVp]
28% p         pronouns [p]
29% PO        Object of Prep [J]
30% QO        Object of Quantifier [J]
31% REL       Relative clauses [R]
32% S         Subject [S]
33% n         nouns [n]
34
35
36% Nouns
37
38<noun-idafa>:
39{NSUFFINDEF+} & GEN+ & {@A+}	% Head of Idafa construct (1st position)
40;
41
42<noun-local>:
43( {Dal- or NPOSS+ or NSUFFINDEF+}
44%  & {NUMB-} % this rule is on probation
45  & {A+}
46);
47
48<noun-modify>:
49{REL+ or [P+]}
50;
51
52<noun-common>:
53(
54    GEN-	% 2nd term of Idafa construct
55    or Sn-	% Subject
56    or CCSr-	% Conjunction Subject
57    or CCSL+	% Conjunction Subject
58    or On-	% Object
59    or CCOr-	% Conjunction Object
60    or CCOL+	% Conjunction Object
61    or PO-	% Object of preposition
62    or CCPOr-	% Conjunction Object of Prep
63    or CCPOL+	% Conjunction Object of Prep
64    or QO-	% Object of Quantifier
65    or CCQOr-	% Conjunction Object of Quantifier
66    or CCQOL+	% Conjunction Object of Quantifier
67    or (
68    {C-}
69    & [[O+]] 	% Copula Subject
70    )
71);
72
73
74/ar/words/words.n /ar/words/words.noun /ar/words/words.Ndip /ar/words/words.N0 /ar/words/words.years <UNKNOWN-WORD>.n : (<noun-local> or <noun-idafa>) & <noun-modify> & <noun-common>;
75/ar/words/words.Ndu        : {NSUFFPLd+}   & (<noun-local> or <noun-idafa>) & <noun-modify> & <noun-common>;
76/ar/words/words.Nap        : NSUFFFEMsg+   & (<noun-local> or <noun-idafa>) & <noun-modify> & <noun-common>;
77/ar/words/words.NAt        : NSUFFFEMpl+   & (<noun-local> or <noun-idafa>) & <noun-modify> & <noun-common>;
78/ar/words/words.NapAt      : NSUFFFEM+     & (<noun-local> or <noun-idafa>) & <noun-modify> & <noun-common>;
79/ar/words/words.Napdu      : (NSUFFFEMsg+ or NSUFFPL+)    & (<noun-local> or <noun-idafa>) & <noun-modify> & <noun-common>;
80/ar/words/words.NduAt      : {NSUFFPLd+   or NSUFFFEMpl+} & (<noun-local> or <noun-idafa>) & <noun-modify> & <noun-common>;
81/ar/words/words.Nall       : (NSUFFFEM+ or NSUFFPL+) & (<noun-local> or <noun-idafa>) & <noun-modify> & <noun-common>;
82/ar/words/words.N_slash_ap : {NSUFFPLd+ or NSUFFFEMsg+ or NSUFFFEMpl+} & (<noun-local> or <noun-idafa>) & <noun-modify> & <noun-common>;
83
84/ar/words/words.Nprop /ar/words/words.noun_prop <UNKNOWN-WORD>.Nprop:
85(({G+} & <noun-local> & <noun-modify> & <noun-common>) or (G- & {G+}));	% Proper nouns
86
87% Quantifiers
88"kl.quant" "kul~.quant" "bED.quant" "baEoD.quant" ">y.quant" :
89(<noun-modify> or QO+) & <noun-common>;
90
91% Numbers
92/ar/words/words.numbers :
93{NSUFFFEMsg+} & (<noun-modify> or {QO+}) & <noun-common>;
94
95
96%% Nominal Plural Suffixes
97"iyn.NPL" "yn.NPL" : NSUFFPL-;
98"ayn.NPL":           NSUFFPLd-;
99
100%% Nominal Feminine Suffixes
101"ap.NSUFFFEMSG" "p.NSUFFFEMSG": NSUFFFEMsg-;
102"At.NSUFFFEMPL": NSUFFFEMpl-;
103
104
105% Pronouns
106%% Personal Pronouns
107"hw.PRON3MS" "huwa.PRON3MS" "hy.PRON3FS" "hiya.PRON3FS" ">nt.PRON2S" "Ant.PRON2S" ">anota.PRON2MS" ">anoti.PRON2FS" ">nA.PRON1S" "AnA.PRON1S" ">anA.PRON1S" "hm.PRON3MP" "hum.PRON3MP" "hn.PRON3FP" "hun~a.PRON3FP" ">ntm.PRON2MP" "Antm.PRON2MP" ">anotum.PRON2MP" ">ntn.PRON2FP" "Antn.PRON2FP" ">anotun~a.PRON2FP" "nHn.PRON1P" "naHonu.PRON1P" "hmA.PRON3D" "humA.PRON3D" ">ntmA.PRON2D" "AntmA.PRON2D" ">anotumA.PRON2D" :
108(
109(Sp- or CCSr- or CCSL+)
110or [PO- or CCPOr- or CCPOL+]  % Object of a Preposition
111or [QO- or CCQOr- or CCQOL+]  % Object of a Quantifier
112or (
113    {C-}
114    & O+	% Copula Subject
115   )
116);
117
118%% Demonstrative Pronouns
119"h*A.DEMPRONMS" "h`*A.DEMPRONMS" "h*h.DEMPRONF" "h`*h.DEMPRONF" "h`*ihi.DEMPRONF" "h*y.DEMPRONF" "h`*iy.DEMPRONF" "hAth.DEMPRONF" "hAtihi.DEMPRONF" "h*An.DEMPRONMD" "h`*Ani.DEMPRONMD" "h*yn.DEMPRONMD" "h`*ayoni.DEMPRONMD" "hAtAn.DEMPRONFD" "hAtAni.DEMPRONFD" "hAtyn.DEMPRONFD" "hAtayoni.DEMPRONFD" "h&lA'.DEMPRONMP" "h`&ulA'i.DEMPRONMP" "hwlA'.DEMPRONMP" :
120Ddp+;
121
122
123%% Nominal Possesive morphemes
124"h.NSUFF" "hu.NSUFF" "hmA.NSUFF" "humA.NSUFF" "hm.NSUFF" "hum.NSUFF" "hA.NSUFF" "hn.NSUFF" "hn~a.NSUFF" "k.NSUFF" "ka.NSUFF" "ki.NSUFF" "kmA.NSUFF" "kumA.NSUFF" "km.NSUFF" "kum.NSUFF" "kn.NSUFF" "kun~a.NSUFF" "y.NSUFF" "iy.NSUFF" "nA.NSUFF":
125NPOSS-;
126
127
128
129
130% Dets
131"Al.d": {Ddp-} & Dal+;
132
133
134
135% Adjs
136/ar/words/words.adj :
137{NSUFFFEMsg+}
138& {Dal-}
139& (
140    A-	% Attributive adjectives
141    or
142    ({COMPARE+} & Oa-)	% Predicate adjectives, linking with Copula subject
143   )
144;
145
146
147% Comparatives
148"mn.compare" "min.compare":
149COMPARE- & (PO+ or CCPOBJ+ or [C+]);
150
151% Preps
152/ar/words/words.prep : (P- or [P+] or QO-) & (PO+ or CCPOBJ+);
153
154
155
156% Verbs
157<adjunct>:
158(
159  ( {@P+} & {@ADV+} )
160or
161  ( {@ADV+} & {@P+} )
162)
163;
164
165%% Perfect Verbs
166/ar/words/words.PV /ar/words/words.PV_V /ar/words/words.PV_C /ar/words/words.PV_Atn /ar/words/words.PV_0 <UNKNOWN-WORD>.PV :
167{PVSUFFSUBJ+} & {NEGp-} & {C- or CCVr-} & ((VSUFFDO+ & {S+ or CCSUBJ+}) or ({S+ or CCSUBJ+} & [<adjunct>] & {[O+ or CCOBJ+]})) & <adjunct> & {SUB+ or CCVl+};
168
169%% Intransitive Perfect Verbs
170/ar/words/words.PV_intr :
171{PVSUFFSUBJ+} & {NEGp-} & {C- or CCVr-} & {S+ or CCSUBJ+} & <adjunct> & {SUB+ or CCVl+};
172
173%% Aspectual Intransitive Perfect Verbs
174"kAn.AspPVintr" "bd>.AspPVintr" :
175{PVSUFFSUBJ+} & {NEGp-} & {C- or CCVr-} & {AUXasp+ or S+ or CCSUBJ+} & <adjunct> & {SUB+ or CCVl+};
176
177%% Tense markers
178"qd.PVtense":
179AUXpast+;
180"s.IVtense":
181AUXfut+;
182
183%%% Perfect Verb Suffixes
184"t.PVSUFFSUBJ" "at.PVSUFFSUBJ" "tu.PVSUFFSUBJ" "ta.PVSUFFSUBJ" "ti.PVSUFFSUBJ" "tmA.PVSUFFSUBJ" "tumA.PVSUFFSUBJ" "tm.PVSUFFSUBJ" "tum.PVSUFFSUBJ" "tn.PVSUFFSUBJ" "tun~a.PVSUFFSUBJ" "n.PVSUFFSUBJ" "na.PVSUFFSUBJ" "nA.PVSUFFSUBJ" "wA.PVSUFFSUBJ" "uwA.PVSUFFSUBJ" :
185PVSUFFSUBJ-;
186
187%% Imperfect Verbs
188/ar/words/words.IV /ar/words/words.IV_yu /ar/words/words.IV_0 <UNKNOWN-WORD>.IV :
189IVPRE- & {NEGi- or AUX-} & {C- or CCVr-} & {IVSUFFSUBJ+} & (({VSUFFDO+} & {S+ or CCSUBJ+}) or ({S+ or CCSUBJ+} & [<adjunct>] )) & {[O+ or CCOBJ+]} & <adjunct> & {SUB+ or CCVl+} ;
190
191%% Intransitive Imperfect Verbs
192/ar/words/words.IV_intr :
193IVPRE- & {NEGi- or AUX-} & {C- or CCVr-} & {IVSUFFSUBJ+} & {S+ or CCSUBJ+} & <adjunct> & {SUB+ or CCVl+} ;
194
195%% Possessive Construct
196"l.POSS" "li.POSS" "mE.POSS" "maE.POSS" :
197{NEGi- or AUX-} & {C- or CCVr-} & {NPOSS+} & {S+ or CCSUBJ+} & <adjunct>;
198
199%%% Imperfect Verb Prefixes
200"y.IV3MS" "ya.IV3MS" "yu.IV3MS" "t.IVS" "ta.IV3FS" "tu.IV2MS" ">.IV1S" ">a.IV1S" "n.IV1P" "na.IV1P":
201IVPRE+;
202%%% Imperfect Verb Suffixes
203"yn.IVSUFFSUBJ" "iyna.IVSUFFSUBJ" "wn.IVSUFFSUBJ" "uwna.IVSUFFSUBJ" "n.IVSUFFSUBJ" "na.IVSUFFSUBJ" :
204IVSUFFSUBJ-;
205
206%% Verb Direct Object Enclitics
207"h.VSUFFDO" "hu.VSUFFDO" "hmA.VSUFFDO" "humA.VSUFFDO" "hm.VSUFFDO"
208"hum.VSUFFDO" "hA.VSUFFDO" "hn.VSUFFDO" "hun~a.VSUFFDO" "k.VSUFFDO"
209"ka.VSUFFDO" "ki.VSUFFDO" "kmA.VSUFFDO" "kumA.VSUFFDO" "km.VSUFFDO"
210"kum.VSUFFDO" "kn.VSUFFDO" "kun~a.VSUFFDO" "ny.VSUFFDO" "niy.VSUFFDO"
211"nA.VSUFFDO":
212  VSUFFDO- or PO- or QO-;
213
214
215% Etc. grammatical words
216
217%% Adverbs
218/ar/words/words.adv:
219AVSUFF+ & ([ADV+] or ADV-);
220
221"AF.suff":
222AVSUFF- or NSUFFINDEF-;
223
224%% Negation
225"lA.neg" "lan.neg" "ln.neg" "lam.neg" "lm.neg": NEGi+;
226"mA.neg": NEGp+;
227
228%% Relativizers - mA??
229"Al*y.RELPRON" "Al~a*iy.RELPRON" "Alty.RELPRON" "Al~atiy.RELPRON" "All*An.RELPRON" "All~a*Ani.RELPRON" "All*yn.RELPRON" "All~a*ayoni.RELPRON" "AlltAn.RELPRON" "All~atAni.RELPRON" "Alltyn.RELPRON" "All~atayoni.RELPRON" "Al*yn.RELPRON" "Al~a*iyna.RELPRON" "AllAty.RELPRON" "All~Atiy.RELPRON" "AllwAty.RELPRON" "All~awAtiy.RELPRON" "AlltyA.RELPRON" "All~utay~A.RELPRON" ">yn.RELPRON" "Ayn.RELPRON" :
230REL- & Crel+;
231
232%% Complementizers
233"An.comp" ">n.comp" ">an.comp" ">an~.comp" ">an~a.comp" "lAn.com" "l>n.comp" "mA.comp":
234{PO-} & SUB- & Csub+;
235
236%% Coordination
237"w.conj" "wa.conj" ">w.conj" "Aw.conj" ">aw.conj" "lkn.conj"
238"l`kin.conj" "l`kin~a.conj" "f.conj" "fa.conj" "bl.conj"
239"bal.conj" "bEdmA.conj" "baEodamA.conj" "byd.conj" "bayoda.conj"
240"bynmA.conj" "bayonamA.conj" "HsbmA.conj" "HasobamA.conj" "HAlmA.conj"
241"HAlamA.conj" "Hyv.conj" "Hayovu.conj" "HyvmA.conj" "HayovumA.conj"
242"HynmA.conj" "HiynamA.conj" "ryvmA.conj" "rayovamA.conj" "TAlmA.conj"
243"TAlamA.conj" "EndmA.conj" "EinodamA.conj" "fymA.conj" "fiymA.conj"
244"qblmA.conj" "qabolamA.conj" "klmA.conj" "kul~amA.conj" "kmA.conj"
245"kamA.conj" "lky.conj" "likay.conj" "kymA.conj" "kayomA.conj"
246"mAlm.conj" "mAlam.conj" "lw.conj" "law.conj" "mn*.conj" "muno*u.conj"
247"<*A.conj" "A*A.conj" "<i*A.conj" ">yD.conj" :
248%{COMMA-} &
249%Wdc+ or  % for sentence-initial conjunctions
250( % Multiple Verbs
251 CCVr+
252 & {CCVl-}
253)
254or
255( % Multiple Subjects
256 CCSr+
257 & CCSL-
258 & (CCS- or CCSUBJ-)
259)
260or
261( % Multiple Objects
262 CCOr+
263 & CCOL-
264 & (CCO- or CCOBJ-)
265)
266or
267( % Multiple Objects of a Preposition
268 CCPOr+
269 & CCPOL-
270 & (CCPO- or CCPOBJ-)
271)
272or
273( % Multiple Objects of a Quantifier
274 CCQOr+
275 & CCQOL-
276 & (CCQO- or CCQOBJ-)
277)
278;
279