-
Notifications
You must be signed in to change notification settings - Fork 26
/
morph.lexc
2845 lines (2334 loc) · 68 KB
/
morph.lexc
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
! morph.lexc - main morphotactic description
!
! Released under the terms of the MIT License
! Copyright (c) 2011-2015 Çağrı Çöltekin <[email protected]>
!
! Permission is hereby granted, free of charge, to any person obtaining a
! copy of this software and associated documentation files (the "Software"),
! to deal in the Software without restriction, including without limitation
! the rights to use, copy, modify, merge, publish, distribute, sublicense,
! and/or sell copies of the Software, and to permit persons to whom the
! Software is furnished to do so, subject to the following conditions:
!
! The above copyright notice and this permission notice shall be included in
! all copies or substantial portions of the Software.
!
! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
! IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
! FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
! AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
! LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
! FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
! DEALINGS IN THE SOFTWARE.
!
#include "options.h"
#include "multi-char.lexc"
! LEXICON Root
! Number; ! numbers are special as they are defined through a set of rules.
! Exceptions;
!
!
! This part is the core lexicon. We do not what to leave any
! of these out. These files do not have lexicon definitions.
! They only list the lexical items and their class.
!
! #include "lexicon/alpha"
! #include "lexicon/clitics"
! #include "lexicon/punctuation"
! #include "lexicon/qwords"
! #include "lexicon/adjective"
! #include "lexicon/adverb"
! #include "lexicon/conjunction"
! #include "lexicon/determiner"
! #include "lexicon/interjection"
! #include "lexicon/noun"
! #include "lexicon/proper_noun"
! #include "lexicon/onomatopoeia"
! #include "lexicon/postposition"
! #include "lexicon/pronoun"
! #include "lexicon/verb"
!
! !
! ! These may be "optionalized", or replaced by a more rule-governed
! ! method in the future.
! !
!
! #include "lexicon/abbreviation"
! #include "lexicon/part_word"
!
!
! !
! ! Definitions for numbers, including numeric forms (Arabic and Roman numerals)
! !
!
! #include "number.lexc"
! #include "exceptions.lexc"
!
! Continuation class for symbols of the alphabet (when they are used
! literally)
!
! when inflected, we require apostrophe after letters (when required
! for porper names), e.g., 'şekil A'da görüldüğü gibi'.
!
LEXICON AlphaCont
%<Alpha%>:@RB NPApos;
%<Alpha%>:@RB ENDLEX;
!
! conjunctions
!
LEXICON CnjCoo
%<Cnj%:coo%>:@RB ENDLEX;
LEXICON CnjAdv
%<Cnj%:adv%>:@RB ENDLEX;
LEXICON CnjSub
%<Cnj%:sub%>:@RB ENDLEX;
!
! The following are for multi-word or discontinuous conjunctions.
!
LEXICON CnjCooPart
%<Cnj%:coo%:partial%>:@RB ENDLEX;
LEXICON CnjAdvPart
%<Cnj%:adv%:partial%>:@RB ENDLEX;
!
! Postpositions
!
!
! non-case-marked complements
!
LEXICON nomPostPadj
%<Postp%:adj%:nomC%>:@RB AdjCont;
nomPostP;
LEXICON nomPostP
%<Postp%:adv%:nomC%>:@RB AdvCont;
LEXICON nomPostPadjKi
%<Postp%:adj%:nomC%>:@RB AdjCont;
nomPostPKi;
LEXICON nomPostPKi
%<Postp%:adv%:nomC%>:@RB AdvCont;
%<Postp%:adv%:nomC%>:@RB Ki;
!
! genitive complements (note: this is different than the nominal
! complement case, where they are fine with genitive pronouns, but no
! other genitive complements)
!
LEXICON genPostP
%<Postp%:adv%:genC%>:@RB AdvCont;
!
! accusative complements
!
LEXICON accPostPadj
%<Postp%:adv%:accC%>:@RB AdjCont;
accPostP;
LEXICON accPostP
%<Postp%:adv%:accC%>:@RB AdvCont;
!
! dative complements
!
LEXICON datPostPadj
%<Postp%:adj%:datC%>:@RB AdjCont;
datPostP;
LEXICON datPostP
%<Postp%:adv%:datC%>:@RB AdvCont;
LEXICON datPostPadjKi
%<Postp%:adj%:datC%>:@RB AdjCont;
datPostPKi;
LEXICON datPostPKi
%<Postp%:adv%:datC%>:@RB datPostPKiCont;
LEXICON datPostPKiCont
AdvCont;
Ki;
PostPTimeCont;
LEXICON PostPTimeCont
D_dir;
D_lArI;
D_lIGInA;
CliticSA;
!
! ablative complement
!
LEXICON ablPostPadj
%<Postp%:adj%:ablC%>:@RB AdjCont;
ablPostP;
LEXICON ablPostP
%<Postp%:adv%:ablC%>:@RB AdvCont;
LEXICON ablPostPadjKi
%<Postp%:adj%:ablC%>:@RB AdjCont;
ablPostPKi;
LEXICON ablPostPKi
%<Postp%:adv%:ablC%>:@RB AdvCont;
%<Postp%:adv%:ablC%>:@RB Ki;
%<Postp%:adv%:ablC%>:@RB PostPTimeCont;
!
! instrumetnal/commutative complement
!
LEXICON insPostPadj
%<Postp%:adj%:insC%>:@RB AdjCont;
insPostP;
LEXICON insPostP
%<Postp%:adv%:insC%>:@RB AdvCont;
LEXICON insPostPadjKi
%<Postp%:adj%:insC%>:@RB AdjCont;
%<Postp%:adj%:insC%>:@RB Ki;
!
! these require a complement with either -lI or -sIz
!
LEXICON liPostPadj
%<Postp%:adj%:liC%>:@RB AdjCont;
liPostP;
LEXICON liPostP
%<Postp%:adv%:liC%>:@RB AdvCont;
LEXICON liPostPadjKi
%<Postp%:adj%:liC%>:@RB AdjCont;
liPostPKi;
LEXICON liPostPKi
%<Postp%:adv%:liC%>:@RB AdvCont;
%<Postp%:adv%:liC%>:@RB Ki;
!
! these requrire a cardinal number as complement
!
LEXICON numPostPadj
%<Postp%:adj%:numC%>:@RB AdjCont;
numPostP;
LEXICON numPostP
%<Postp%:adv%:numC%>:@RB AdvCont;
LEXICON numPostPadjKi
%<Postp%:adj%:numC%>:@RB AdjCont;
numPostPKi;
LEXICON numPostPKi
%<Postp%:adv%:numC%>:@RB AdvCont;
%<Postp%:adv%:numC%>:@RB Ki;
!
! The follwing makes complex postpositons.
!
LEXICON PostPlocation
PostPloc;
PostPdat;
PostPabl;
LEXICON PostPloc
%<N%>%<p1s%>:@RB^(I)m@MB PostPlocCont;
%<N%>%<p2s%>:@RB^(I)n@MB PostPlocCont;
%<N%>%<p3s%>:@RB^(s)^I@MB PostPlocCont;
%<N%>%<p1p%>:@RB^(I)m^Iz@MB PostPlocCont;
%<N%>%<p2p%>:@RB^(I)n^Iz@MB PostPlocCont;
%<N%>%<p3p%>:@RBl^Ar^I@MB PostPlocCont;
LEXICON PostPlocCont
%<loc%>%<Postp%:adv%:nomC%>:^D^A@MB DerivedPostpCont;
%<loc%>%<Postp%:adv%:nomC%>:^D^A@MB Ki;
LEXICON PostPdat
%<N%>%<p1s%>:@RB^(I)m@MB PostPdatCont;
%<N%>%<p2s%>:@RB^(I)n@MB PostPdatCont;
%<N%>%<p3s%>:@RB^(s)^I@MB PostPdatCont;
%<N%>%<p1p%>:@RB^(I)m^Iz@MB PostPdatCont;
%<N%>%<p2p%>:@RB^(I)n^Iz@MB PostPdatCont;
%<N%>%<p3p%>:@RBl^Ar^I@MB PostPdatCont;
LEXICON PostPdatCont
%<dat%>%<Postp%:adv%:nomC%>:^(y)^A@MB DerivedPostpCont;
LEXICON PostPins
%<N%>%<p1s%>:@RB^(I)m@MB PostPinsCont;
%<N%>%<p2s%>:@RB^(I)n@MB PostPinsCont;
%<N%>%<p3s%>:@RB^(s)^I@MB PostPinsCont;
%<N%>%<p1p%>:@RB^(I)m^Iz@MB PostPinsCont;
%<N%>%<p2p%>:@RB^(I)n^Iz@MB PostPinsCont;
%<N%>%<p3p%>:@RBl^Ar^I@MB PostPinsCont;
LEXICON PostPinsCont
%<ins%>%<Postp%:adv%:nomC%>:^(y)l^NS^A@MB DerivedPostpCont;
LEXICON PostPabl
%<N%>%<p1s%>:@RB^(I)m@MB PostPablCont;
%<N%>%<p2s%>:@RB^(I)n@MB PostPablCont;
%<N%>%<p3s%>:@RB^(s)^I@MB PostPablCont;
%<N%>%<p1p%>:@RB^(I)m^Iz@MB PostPablCont;
%<N%>%<p2p%>:@RB^(I)n^Iz@MB PostPablCont;
%<N%>%<p3p%>:@RBl^Ar^I@MB PostPablCont;
LEXICON PostPablCont
%<abl%>%<Postp%:adv%:nomC%>:^D^An@MB DerivedPostpCont;
LEXICON PostPca
%<N%>%<p1s%>:@RB^(I)m@MB PostPcaCont;
%<N%>%<p2s%>:@RB^(I)n@MB PostPcaCont;
%<N%>%<p3s%>:@RB^(s)^I@MB PostPcaCont;
%<N%>%<p1p%>:@RB^(I)m^Iz@MB PostPcaCont;
%<N%>%<p2p%>:@RB^(I)n^Iz@MB PostPcaCont;
%<N%>%<p3p%>:@RBl^Ar^I@MB PostPcaCont;
LEXICON PostPcaCont
%<ca%>%<Postp%:adv%:nomC%>:^C^A@MB DerivedPostpCont;
LEXICON DerivedPostpCont
AdvCont;
NomPredicate;
!
! Possessive suffixes after adjectives and determiners make pronouns.
!
! TODO: The semantic difference between these are generally difficult
! to get:
!
! yeni<Adj><p3s><Prn> `(a) new one'
! yeni<Adj><0><N><p3s> `his/her new one = the new thing that he/she owns'
!
! And becomes more obscure in cases like this:
!
! mavi<Adj><p2s><Prn> `the thing that is a blue version of you'
! mavi<Adj><0><N><p2s> `the blue thing that you own'
!
LEXICON JP_poss
JP_plu;
JP_possessive;
LEXICON JP_plu
%<pl%>:l^Ar@MB JP_possessive12p;
LEXICON JP_possessive12p
%<p1p%>%<Prn%>:^(I)m^Iz@MB NposCont;
%<p2p%>%<Prn%>:^(I)n^Iz@MB NposCont;
LEXICON JP_possessive
%<p1s%>%<Prn%>:^(I)m@MB NposCont;
%<p2s%>%<Prn%>:^(I)n@MB NposCont;
%<p3s%>%<Prn%>:^(s)^I@MB NposCont;
%<p3p%>%<Prn%>:l^Ar^I@MB NposCont;
JP_possessive12p;
! besides adjectivals, the adverb `hep' also makes pronominals
! the same way. Instead of <p3s> version `hepi', the correct
! form is `hepsi'. We allow `hepi', too, as it is used colloquially.
!
! The 1p and 2p singular forms are probably not possible.
! We allow them here.
!
LEXICON HepPrn
%<Adv%>%<p3s%>%<Prn%>:s^I@MB NposCont;
%<Adv%>%<p3s%>%<Prn%>:^(s)^I@MB NposCont;
%<Adv%>%<p1p%>%<Prn%>:^(I)m^Iz@MB NposCont;
%<Adv%>%<p2p%>%<Prn%>:^(I)n^Iz@MB NposCont;
%<N%>%<p3s%>:s^I@MB NposCont;
%<N%>%<p3s%>:^(s)^I@MB NposCont;
%<N%>%<p1p%>:^(I)m^Iz@MB NposCont;
%<N%>%<p2p%>:^(I)n^Iz@MB NposCont;
!
! onomatopoeic words
!
LEXICON Onom
%<Onom%>:@RB OnomCont;
#if (ALLOW_MREDUP == 1)
%<Onom%:mredup%>:@MREDUP@RB OnomCont;
#endif
LEXICON OnomCont
ENDLEX;
Oderiv; ! TODO: this may be overgenerating
!
! interjections
!
! these do not have to be separate lexicons, but it makes things
! easier with old lexicon conversion.
LEXICON Interjection
%<Ij%>:@RB InterjectionCont;
#if (ALLOW_MREDUP == 1)
%<Ij%:mredup%>:@MREDUP@RB InterjectionCont;
#endif
LEXICON InterjectionCont
ENDLEX;
D_lA;
#if (ENDQUOTE_AS_NOUN == 1)
!
! This part handles the (nominal) suffixes following the quotation
! marks. This happens when a word, or even a complete sentence is put
! in quotation marks, and inflected as if it is a noun.
! Examples:
! ``Manisa dosyası''nı
! ``Çeşitli Kanunlarda Değişiklik Yapılmasına İlişkin Kanun''u
!
! TODO: the first example above does not work correctly (due to y -> n
! alternation after -sI
!
LEXICON EndQuote
%'^sFUV EndQuoteCont;
%'^sFRV EndQuoteCont;
%'^sBUV EndQuoteCont;
%'^sBRV EndQuoteCont;
%'^sFUV^sVC EndQuoteCont;
%'^sFRV^sVC EndQuoteCont;
%'^sBUV^sVC EndQuoteCont;
%'^sBRV^sVC EndQuoteCont;
%'^sFUV^sUC EndQuoteCont;
%'^sFRV^sUC EndQuoteCont;
%'^sBUV^sUC EndQuoteCont;
%'^sBRV^sUC EndQuoteCont;
%'%'^sFUV EndQuoteCont;
%'%'^sFRV EndQuoteCont;
%'%'^sBUV EndQuoteCont;
%'%'^sBRV EndQuoteCont;
%'%'^sFUV^sVC EndQuoteCont;
%'%'^sFRV^sVC EndQuoteCont;
%'%'^sBUV^sVC EndQuoteCont;
%'%'^sBRV^sVC EndQuoteCont;
%'%'^sFUV^sUC EndQuoteCont;
%'%'^sFRV^sUC EndQuoteCont;
%'%'^sBUV^sUC EndQuoteCont;
%'%'^sBRV^sUC EndQuoteCont;
%"^sFUV EndQuoteCont;
%"^sFRV EndQuoteCont;
%"^sBUV EndQuoteCont;
%"^sBRV EndQuoteCont;
%"^sFUV^sVC EndQuoteCont;
%"^sFRV^sVC EndQuoteCont;
%"^sBUV^sVC EndQuoteCont;
%"^sBRV^sVC EndQuoteCont;
%"^sFUV^sUC EndQuoteCont;
%"^sFRV^sUC EndQuoteCont;
%"^sBUV^sUC EndQuoteCont;
%"^sBRV^sUC EndQuoteCont;
%’^sFUV EndQuoteCont;
%’^sFRV EndQuoteCont;
%’^sBUV EndQuoteCont;
%’^sBRV EndQuoteCont;
%’^sFUV^sVC EndQuoteCont;
%’^sFRV^sVC EndQuoteCont;
%’^sBUV^sVC EndQuoteCont;
%’^sBRV^sVC EndQuoteCont;
%’^sFUV^sUC EndQuoteCont;
%’^sFRV^sUC EndQuoteCont;
%’^sBUV^sUC EndQuoteCont;
%’^sBRV^sUC EndQuoteCont;
%”^sFUV EndQuoteCont;
%”^sFRV EndQuoteCont;
%”^sBUV EndQuoteCont;
%”^sBRV EndQuoteCont;
%”^sFUV^sVC EndQuoteCont;
%”^sFRV^sVC EndQuoteCont;
%”^sBUV^sVC EndQuoteCont;
%”^sBRV^sVC EndQuoteCont;
%”^sFUV^sUC EndQuoteCont;
%”^sFRV^sUC EndQuoteCont;
%”^sBUV^sUC EndQuoteCont;
%”^sBRV^sUC EndQuoteCont;
LEXICON EndQuoteCont
N;
!%<N%>:@RB Nderiv; ! these are useful in case we want this to
!%<N%>:@RB Ninfl; ! apply only if there are inflections.
#endif
!
! Rules governing nouns, including proper names and compounding
!
LEXICON NPcomp ! this is only for lexicalized forms with compounding
@NCOMP%<N%:prop%>:^(s)^I@NCOMP@RB NPcont;
#if (ALLOW_MREDUP == 1)
@NCOMP%<N%:prop%:mredup%>:^(s)^I@NCOMP@MREDUP@RB NPcont;
#endif
LEXICON NPPart
%<N%:prop%:partial%>:@RB NPcont;
LEXICON NP
%<N%:prop%>:@RB NPcont;
#if (ALLOW_MREDUP == 1)
%<N%:prop%:mredup%>:@MREDUP@RB NPcont;
#endif
LEXICON NP_typo
#if (MARK_TYPOS == 1)
%<N%:prop%:typo%>:@RB NPcont;
%<N%:prop%:mredup%:typo%>:@MREDUP@RB NPcont;
#else
NP;
#endif
LEXICON NP_abbr
%<N%:prop%:abbr%>:@ABBR@RB NPAbbrCont;
LEXICON NPAbbrCont
ENDLEX;
NPApos;
#if (APOSTROPHE_OPTIONAL_ABBR == 1)
NPAposCont;
#endif
LEXICON NPcont
ENDLEX;
NPApos;
#if (APOSTROPHE_OPTIONAL_PN == 1)
NPAposCont;
#endif
LEXICON NPApos
0:@APOS@MB NPAposCont;
LEXICON NPAposCont
Nderiv;
Ninfl;
LEXICON NPnation
%<N%:prop%>:@RB NPnationCont;
#if (ALLOW_MREDUP == 1)
%<N%:prop%:mredup%>:@MREDUP@RB NPnationCont;
#endif
LEXICON NPnationCont
NPcont;
ND_CAlanguage;
LEXICON NPperson
%<N%:prop%>:@RB NPpersonCont;
#if (ALLOW_MREDUP == 1)
%<N%:prop%:mredup%>:@MREDUP@RB NPpersonCont;
#endif
LEXICON NPpersonCont
NPcont;
0:@APOS@MB D_gil;
#if (APOSTROPHE_OPTIONAL_PN == 1)
D_gil;
#endif
LEXICON Ncomp ! this is only for lexicalized forms with compounding
@NCOMP%<N%>:^(s)^I@NCOMP@RB NcompCont;
#if (ALLOW_MREDUP == 1)
@NCOMP%<N%:mredup%>:^(s)^I@NCOMP@MREDUP@RB NcompCont;
#endif
LEXICON NcompInfl ! this is for regular nouns
%<ncomp%>:^(s)^I@NCOMP@MB NcompCont;
LEXICON NcompCont
#if (NOUN_APOSTROPHE == 1)
0:@APOS@MB NcompAposCont;
#endif
ENDLEX;
NcompAposCont;
LEXICON NcompAposCont
Nderiv;
Ninfl;
LEXICON Ninfl
Nplu;
Npos;
Ncase;
NomPredicate;
!
! Nouns representing family members can get plural after p1s/p2s
!
! teyze-m-ler, dayın-n-lar ..
! -lAr here works like a derivational morpheme that derives another
! (plural) noun. However, it is at best odd to have another possessive
! suffix, so, we do not allow another possessive suffix after -lAr.
!
! These may also be treated as a proper noun in combination with the
! person's name, needing an apostrophe after the possessive suffix.
! E.g., "Ahmet Amcam'ın"
LEXICON Nfamily
%<N%>:@RB Ncont;
%<N%>:@RB NfamCont;
#if (ALLOW_MREDUP == 1)
%<N%::mredup%>:@MREDUP@RB Ncont;
%<N%::mredup%>:@MREDUP@RB NfamCont;
#endif
LEXICON NfamCont
%<p1s%>:^(I)m@MB NfamPosCont;
%<p2s%>:^(I)n@MB NfamPosCont;
%<p1s%>:^(I)m@MB@APOS@MB NfamPosCont;
%<p2s%>:^(I)n@MB@APOS@MB NfamPosCont;
%<p1s%>:^(I)m@MB@APOS@MB NposCont;
%<p2s%>:^(I)n@MB@APOS@MB NposCont;
%<p3s%>:^(s)^I@MB@APOS@MB NposCont;
LEXICON NfamPosCont
%<pl%>:l^Ar@MB NposCont;
! %<pl%>:l^Ar@MB NpluCont; ! use this instead of the above line
! to accept forms like dayı-n-lar-ım
!
! Noun abbreviations
!
LEXICON N_unit ! we may treat these differntly later
%<N%:abbr%>:@ABBR@RB NAbbrCont;
LEXICON N_abbr
%<N%:abbr%>:@ABBR@RB NAbbrCont;
LEXICON NAbbrCont
ENDLEX;
0:@APOS@MB Ncont;
#if (APOSTROPHE_OPTIONAL_ABBR == 1)
Ncont;
#endif
!
! End of family nouns + possessive-plural
!
LEXICON N
%<N%>:@RB Ncont;
#if (ALLOW_MREDUP == 1)
%<N%:mredup%>:@MREDUP@RB Ncont;
#endif
LEXICON N_typo
#if (MARK_TYPOS == 1)
%<N%:typo%>:@RB Ncont;
#else
N;
#endif
LEXICON NPart
%<N%:partial%>:@RB ENDLEX;
LEXICON NPartLast
%<N%:partial%>:@RB Ncont;
LEXICON Ncont
Nderiv;
NcompCont; ! includes final
#if (MARK_NCOMP == 1)
NcompInfl;
#endif
LEXICON Ntime
%<N%>:@RB NtimeCont;
LEXICON NtimeCont
Ki;
D_dir;
%<pl%>:l^Ar@MB D_dir;
Ncont;
D_lArI;
D_lIGInA;
LEXICON Nplu
%<pl%>:l^Ar@MB NpluCont;
LEXICON NpluCont
ENDLEX;
Npos;
Ncase;
NomPredicatePLU;
ND_CA;
D_arasi;
LEXICON Npos
%<p1s%>:^(I)m@MB NposCont;
%<p2s%>:^(I)n@MB NposCont;
%<p3s%>:^(s)^I@MB Npos3sCont;
%<p1p%>:^(I)m^Iz@MB NposCont;
%<p2p%>:^(I)n^Iz@MB NposCont;
%<p3p%>:l^Ar^I@MB NposCont;
LEXICON Npos3sCont
NposCont;
#if (MARK_NCOMP == 0 && NOUN_APOSTROPHE == 1)
0:@APOS@MB NposCont;
#endif
LEXICON NposCont
ENDLEX;
Ncase;
NomPredicate;
D_gil; ! TODO: this should be restricted
ND_CA;
LEXICON NCaseNoGen
! %<nom%>:^(y)^I@MB NomCaseCont; ! we do not (yet) mark for nominative
%<acc%>:^(y)^I@MB AccCaseCont;
%<dat%>:^(y)^A@MB Case1Cont;
%<abl%>:^D^An@MB Case1Cont;
%<ins%>:^(y)l^NS^A@MB Case1Cont;
%<loc%>:^D^A@MB LocCaseCont;
LEXICON Ncase
D_sIz; ! sIz can combine after most of the inflectional suffixes
NCaseNoGen;
%<gen%>:^(n)^In@MB GenCaseCont;
LEXICON Case1Cont
ENDLEX;
NomPredicate;
!
! Normally, predicative use after accusative is almost an
! impossibility, but some forms exist: `renginiyse Ali seçmiş',
!
LEXICON AccCaseCont
Case1Cont;
! ENDLEX;
LEXICON LocCaseCont
ENDLEX;
Ki;
NomPredicate;
LEXICON GenCaseCont
ENDLEX;
Ki;
NomPredicate;
LEXICON Ki
%<ki%>:ki@MB DerivJCont;
!
! This part deals with person agreement
!
LEXICON NomPredicatePLU
#if (ZERO_DERIV == 1)
%<%0%>%<V%>:@MB NomPredPagr;
%<%0%>%<V%>:@MB NomPredPagr3s;
%<%0%>%<V%>:@MB NomPredDir;
%<%0%>%<V%>:@MB CplAll;
%<%0%>%<V%>:@MB ENDLEX;
#else
NomPredPagr;
NomPredPagr3s;
NomPredDir;
CplAll;
ENDLEX;
#endif
NomPredQ;
CliticSA;
LEXICON NomPredicate
#if (ZERO_DERIV == 1)
%<%0%>%<V%>:@MB NomPredPagr3p;
#else
NomPredPagr3p;
#endif
NomPredicatePLU;
LEXICON NomPredicateMAK
#if (ZERO_DERIV == 1)
%<%0%>%<V%>:@MB NomPredPagr3s;
%<%0%>%<V%>:@MB NomPredPagr3p;
%<%0%>%<V%>:@MB NomPredDir;
%<%0%>%<V%>:@MB CplAll;
#else
NomPredPagr3s;
NomPredPagr3p;
NomPredDir;
CplAll;
#endif
NomPredQ;
LEXICON NomPredQ
#if (ZERO_DERIV == 1)
%<%0%>%<V%>:@MB NomPredQCont;
#else
NomPredQCont;
#endif
LEXICON NomPredQCont
#if (PREDICATE_WITHOUT_PAGR == 1)
%<cpl%:pres%>:@MB ENDLEX;
#endif
%<q%>:@miSPCm^I@MB NomPredPagr;
%<q%>:@miSPCm^I@MB NomPredDir;
%<q%>:@miSPCm^I@MB CplAll;
LEXICON NomPredPagr
%<cpl%:pres%>%<1s%>:^(y)^NS^Im@MB NomPredPagrCont;
%<cpl%:pres%>%<2s%>:s^NS^In@MB NomPredPagrCont;
%<cpl%:pres%>%<1p%>:^(y)^NS^Iz@MB NomPredPagrCont;
%<cpl%:pres%>%<2p%>:s^NS^In^Iz@MB NomPredPagrCont;
NomPredPagr3s;
LEXICON NomPredPagr3s
#if (ZERO_COPULA == 1)
%<cpl%:pres%>%<3s%>:0@MB NomPredPagrCont;
#else
ENDLEX;
CVcesine;
DIrEnd;
#endif
LEXICON NomPredPagrCont
ENDLEX;
CVcesine;
DIrEnd;
LEXICON NomPredPagr3p
%<cpl%:pres%>%<3p%>:l^NS^Ar@MB NomPredPagr3pCont;
%<3p%>:l^NS^Ar@MB PAgrCplAll;
LEXICON NomPredPagr3pCont
NomPredPagrCont; ! includes end state
%<q%>:@miSPCm^I@MB NomPred3pQCont;
LEXICON NomPred3pQCont
NomPredPagrCont; ! includes end state
PAgrCplAll;
LEXICON NomPredDir
%<dir%>:^D^NS^Ir@MB NomPredDirCont;
LEXICON NomPredDirCont
%<3p%>:l^Ar@MB ENDLEX;
LEXICON DIrEnd
%<dir%>:^D^NS^Ir@MB ENDLEX;
!
! Rules governing adjectives and adverbs
!
!
! TODO: proper handling of derivations
! . adj -> adv zero derivation
! . -ca -casi etc.
LEXICON Adj
%<Adj%>:@RB AdjCont;
#if (ALLOW_MREDUP == 1)
%<Adj%:mredup%>:@MREDUP@RB AdjCont;
#endif
LEXICON Adj_typo
#if (MARK_TYPOS == 1)
%<Adj%:typo%>:@RB AdjCont;
%<Adj%:type%:mredup%>:@MREDUP@RB AdjCont;
#else
Adj;
#endif
LEXICON AdjPartLast
%<Adj%:partial%>:@RB AdjCont;
LEXICON AdjPart
%<Adj%:partial%>:@RB ENDLEX;
LEXICON AdjNcomp
@NCOMP%<Adj%>:^(s)^I@NCOMP@RB AdjCont;
LEXICON AdjCont
ENDLEX;
NomPredicate;
Jderiv;
LEXICON AdvHep
HepPrn;
Adv;
LEXICON Adv
%<Adv%>:@RB AdvCont;
#if (ALLOW_MREDUP == 1)
%<Adv%:mredup%>:@MREDUP@RB AdvCont;
#endif
LEXICON Adv_typo
#if (MARK_TYPOS == 1)
%<Adv%:typo%>:@RB AdjCont;
%<Adv%:mredup%:typo%>:@MREDUP@RB AdvCont;
#else
Adv;
#endif
LEXICON AdvPartLast
%<Adv%:partial%>:@RB AdvCont;
LEXICON AdvPart
%<Adv%:partial%>:@RB ENDLEX;
LEXICON QAdv
%<Adv%:qst%>:@RB AdvCont;
#if (ALLOW_MREDUP == 1)
%<Adv%:mredup%:qst%>:@MREFUP@RB AdvCont;
#endif
LEXICON QAdj
%<Adj%:qst%>:@RB AdjCont;
#if (ALLOW_MREDUP == 1)
%<Adj%:mredup%:qst%>:@MREFUP@RB AdjCont;
#endif
LEXICON AdvTime
%<Adv%>:@RB AdvTimeCont;
#if (ALLOW_MREDUP == 1)
%<Adv%:mredup%>:@MREFUP@RB AdvTimeCont;
#endif
LEXICON QAdvTime
%<Adv%:qst%>:@RB AdvTimeCont;
#if (ALLOW_MREDUP == 1)
%<Adv%:mredup%:qst%>:@MREFUP@RB AdvCont;
#endif
LEXICON AdvTimeCont
Ki;
AdvCont;
D_lArI;
D_lIGInA;
CliticSA;
LEXICON AdvCont
ENDLEX;
Aderiv;
!
! Rules governing pronouns
!
! TODO: -(y)ken added to som bare pronouns
LEXICON Prn
%<Prn%>:@RB PrnCont;
LEXICON PrnNeg
%<Prn%:neg%>:@RB PrnCont;
LEXICON PrnCont ! this is all, except compounding
ENDLEX;
Pderiv;
NcompCont;
LEXICON PersPrn1s
%<Prn%:pers%:1s%>:@PRN@RB PersPrnPlu;
%<Prn%:pers%:1s%>:@PRN@RB PersPrnCont;
LEXICON PersPrn2s
%<Prn%:pers%:2s%>:@PRN@RB PersPrnPlu;
%<Prn%:pers%:2s%>:@PRN@RB PersPrnCont;
LEXICON PersPrnPlu
%<pl%>:l^Ar@MB PersPrnCont;
LEXICON PersPrn3s
%<Prn%:pers%:3s%>:@RB PersPrnCont;
%<Prn%:pers%>:@RB PersPrn3sPlu;
LEXICON PersPrn3sPlu
%<3p%>:l^Ar@MB PersPrnCont;
ENDLEX;
LEXICON PersPrn1p
%<Prn%:pers%:1p%>:@PRN@RB PersPrnContPL;
LEXICON PersPrn2p
%<Prn%:pers%:2p%>:@RB PersPrnContPL;
LEXICON PersPrn3p
%<Prn%:pers%:3p%>:@RB PersPrnContPL;
LEXICON PrnBiri
%<Prn%:pers%>:@RB PrnBiriCont;
LEXICON PrnBiriCont
PrnPagr3s;
PrnPagr3p;
PrnPagr1p2p;
PersPrnCont;
PrnPlu;
LEXICON PrnHicbiri
%<Prn%:neg%>:@RB PrnHicbiriCont;
LEXICON PrnHicbiriCont
PrnPagr3s;
PrnPagr1p2p;
PersPrnCont;