-
Notifications
You must be signed in to change notification settings - Fork 5
/
letypes.tdl
14803 lines (11738 loc) · 526 KB
/
letypes.tdl
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
; -*- Mode: TDL; Coding: utf-8 -*-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; file: lex-types.tdl
;;; module: Basis
;;; version: %I%
;;; written by: Melanie Siegel
;;; last update:
;;; updated by: Melanie Siegel/Emily Bender/Francis Bond
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; author | date | modification
;;; -----------------|--------- ---|------------------------------------------
;;;Melanie Siegel(MS)| | Emily Bender (ERB), Francis Bond (FCB),
;;; | | Sanae Fujita (SF), Takaaki Tanaka (TT),
;;; | | Akira Ohtani (AO)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;HEADS;;;;;;;;;;;;;;;;;;;;;;;;;
; (ERB 2001-08-06) In order to do Jeff Smith's version of number
; names (i.e., using head-comps and head-spr rules) I need to
; classify all subtypes of head into integer and nonint_head.
; This way I can have a head-initial HCR that only works with
; number names.
; (ERB 2001-08-21) I found another candidate for the head of
; the head-initial HCR, namely symbols like $, ¥, etc. that
; (orthographically) precede the numbers the go with. So,
; I'm renaming the two subtypes of head to be final_head and
; init_head.
final_head := head.
init_head := head.
; (MS 2005-11-23) trying to put utterance head a bit deeper under utt-valid
; (which itself inherits from final_head). Otherwise we cannot parse
; "これはよく売れるが,しかしあまり効かない薬だ。"
utterance-super := utt-valid &
[POS utt,
MOD null,
C-MOD null,
J-SPEC null,
MARK < >,
SMOD marked,
COP-ARG -].
utterance_head := utterance-super.
fragment_head := utterance-super.
temp_mod_head := final_head.
temp_mod_head-avm := temp_mod_head &
[POS temp_mod,
MARK null,
C-MOD null,
J-POSTHEAD right,
J-SPEC null,
COP-ARG -].
; (MS 2003-01-21) adding the MOD none restriction on the modified noun, because I got spurious ambiguity on 日本の経済
; (MS 2005-12-07) but this doesn't work, as nouns do modify!
temp_nmod_head := temp_mod_head-avm &
[ MOD < [LOCAL scopal-mod & [CAT.HEAD noun_head,
BAR +]] > ].
; (MS 2003-09-11) This seems not to be in use any more.
;temp_vmod_head := temp_mod_head-avm &
; [ MOD < [LOCAL [CAT.HEAD verb_head & [MAIN-PRD -,
; FORMAL.AHON -],
; BAR +]] >,
; COP-ARG -].
noun_mod_head := final_head.
; (ERB 2002-01-10) Developing an analysis of など as a posthead
; noun-mod-lex. So, this shouldn't be J-POSTHEAD left.
; (MS 2002-01-16) Moving from LEX + to BAR +, to allow compounds as modifiees.
noun_mod_head-avm := noun_mod_head &
[POS noun_mod,
MARK null,
MOD < [LOCAL [CAT [HEAD noun_head,
VAL saturated],
BAR bool]] >,
C-MOD null,
J-SPEC null,
COP-ARG -].
pp_mod_head := final_head.
pp_mod_head-avm := pp_mod_head &
[POS pp_mod,
MARK null,
MOD < [LOCAL [CAT [HEAD vmod-p_head,
VAL saturated],
BAR bool]] >,
C-MOD null,
J-SPEC null,
COP-ARG -].
; (MS 2005-11-09) These are all AHON + and modifying BAR +.
hon-prefix_head := head &
[POS prefix,
FORMAL.AHON +,
MARK null,
MOD < [LEX +, LOCAL.BAR +] >,
C-MOD null,
J-POSTHEAD left,
J-SPEC null,
COP-ARG -].
punct_head := final_head &
[MARK null,
C-MOD null,
COP-ARG -].
punct_head-avm := punct_head &
[J-SPEC < >].
brackets-or-quotations_head := punct_head.
brackets-or-quotations-end_head :=brackets-or-quotations_head.
brackets-or-quotations-init_head :=brackets-or-quotations_head.
comma-etc_head := punct_head-avm.
; (ERB 2002-01-14) For comma that takes infinitival V as
; complement and gives it a C-MOD value.
; (ERB 2002-02-12) Don't know why I said C-MOD...ADJ -,
; but that obviously needs to come out: 食べ、よい.
punct_head2 := verb_head-super &
[POS punct,
MARK null,
J-SPEC null,
COP-ARG -,
J-POSTHEAD coord,
MOD null,
C-MOD < [LOCAL [CAT [HEAD verb_head & [MAIN-PRD +]],
BAR +] ] >].
comma-pmod_head := comma-etc_head &
[MOD < [LOCAL [CAT.HEAD p_head,
BAR +]] >,
J-POSTHEAD right].
comma-advmod_head := comma-etc_head &
[MOD < [LOCAL [CAT.HEAD adv_head,
BAR +]] >,
J-POSTHEAD right].
comma-sapmod_head := comma-etc_head &
[MOD < [LOCAL [CAT.HEAD sap_head,
BAR +]] >,
J-POSTHEAD right].
comma-infvmod_head := comma-etc_head &
[MOD < [LOCAL [CAT [HEAD sentence-valid &
[FIN -,
MAIN-PRD +]],
BAR +]] >,
J-POSTHEAD right].
; (ERB 2002-01-15) Replacing comma-s_conj with two commas that
; modify verbal things that have nonempty MOD and C-MOD values, respectively.
comma-vmod1_head := comma-etc_head &
[MOD < [LOCAL [CAT [HEAD verb_head &
[MOD 1-list,
C-MOD null,
MAIN-PRD +],
VAL saturated],
BAR +]] >,
J-POSTHEAD right].
comma-vmod2_head := comma-etc_head &
[MOD < [LOCAL [CAT [HEAD verb_head &
[C-MOD 1-list,
MAIN-PRD bool],
VAL saturated],
BAR +]] >,
J-POSTHEAD right].
comma-interjmod_head := comma-etc_head &
[MOD < [LOCAL [CAT.HEAD interj_head,
BAR +]] >,
J-POSTHEAD right].
parent-end_head := punct_head & noun_head & int_head &
[MOD < [LOCAL [CAT [HEAD noun_head,
VAL saturated],
BAR +]] > ].
parent-init_head := brackets-or-quotations_head &
[MOD null,
J-SPEC < >].
quotation-name-init_head := brackets-or-quotations-init_head &
[MOD null,
J-SPEC < >,
J-POSTHEAD left].
quotation-name-end_head := brackets-or-quotations-end_head &
[MOD < [LOCAL [CAT.HEAD name_head,
BAR +]] >,
J-SPEC < >,
J-POSTHEAD right].
quotation-noun-init_head := brackets-or-quotations-init_head &
[MOD null,
J-SPEC < >,
J-POSTHEAD left].
quotation-noun-end_head := brackets-or-quotations-end_head & noun_head &
[MOD < [LOCAL [CAT [HEAD ordinary_noun_head,
VAL saturated],
BAR +]] >,
J-POSTHEAD right].
quotation-sentence-init_head := brackets-or-quotations-init_head &
[MOD null,
J-SPEC < >,
J-POSTHEAD left].
quotation-sentence-end_head := brackets-or-quotations-end_head & sentence-valid &
[MOD < [LOCAL [CAT.HEAD sentence-valid,
BAR +]] >,
J-SPEC < >,
J-POSTHEAD right].
quotation-sap-init_head := brackets-or-quotations-init_head &
[MOD < [LOCAL [CAT.HEAD sap_head,
BAR +]] >,
J-SPEC < >,
J-POSTHEAD left].
quotation-sap-end_head := brackets-or-quotations-end_head &
[MOD < [LOCAL [CAT.HEAD sap_head,
BAR +]] >,
J-SPEC < >,
J-POSTHEAD right].
quotation-definition-end_head := brackets-or-quotations-end_head & nom_head-avm &
[MOD null,
J-SPEC null].
; (ERB 2001-08-09) I need a supertype to both noun_head and case-p_head to
; get disjunctive modification possiblities for numeral classifiers w/o
; adding extra lexical entries.
noun-or-case-p_head := final_head.
noun_head := noun-or-case-p_head.
; (MS 2005-07-04) I want to get rid of the compound-noun-rule, such that I give a value to MOD here.
noun_head-avm := noun_head &
[POS n,
C-MOD null,
MARK null,
QUANTIFIABLE bool,
COP-ARG -].
; (ERB 2002-01-28) Make supertype to ordinary_noun_head and date_noun_head
; to allow words like TOKI as heads of compounds.
ordinary-or-date-noun_head := noun_head-avm.
ordinary_noun_head := ordinary-or-date-noun_head.
;(MS 2001-12-14) changing J-SPEC in order to make something like GAKUSEI SAMA possible.
; (MS 2005-07-04) I want to get rid of the compound-noun-rule, such that I give a value
; to MOD in noun_head-avm.
; (was MOD null)
ordinary_noun_head-avm := ordinary_noun_head &
[J-SPEC.FIRST.LOCAL.CAT.HEAD title_head,
MOD < [LOCAL [CAT [HEAD ordinary-or-date-noun_head]],
MODIFIED.PERIPH -]>,
J-POSTHEAD compound,
VN -].
;; (FCB 2003-09-04) type for mi and sa
adj2n-suffix_noun_head := ordinary-or-date-noun_head.
; (MS 2005-10-06) I use this for month names.
; (MS 2005-11-04) I date nouns to occur in compounds, such as "毎週土曜日"
date_noun_head := temporal-noun_head & ordinary-or-date-noun_head.
date_noun_head-avm := date_noun_head & [J-SPEC null,
J-POSTHEAD compound,
VN -,
MOD < [LOCAL intersective-mod &
[CAT [HEAD noun_head-avm,
VAL saturated]],
MODIFIED.PERIPH -] >].
pron_head := noun_head-avm.
pron_head-avm := pron_head & [MOD null,
KEYS.KEY pron_rel,
J-SPEC null,
VN -,
QUANTIFIABLE -].
exceptional_noun_head := nom_head-avm & [MOD null,
J-SPEC null,
NO-MOD -,
QUANTIFIABLE -].
; (MS 2005-03-30) This seems not to be in use any more.
;exceptional_noun_nmod_head := nom_head-avm & [J-SPEC null,
; QUANTIFIABLE -,
; MOD < [LOCAL.CAT.HEAD noun_head]>,
; J-POSTHEAD rels].
relational_noun_head := ordinary_noun_head & [MOD null,J-SPEC null, VN -].
dofw_noun_head := temporal-noun_head.
dofm_noun_head := temporal-noun_head.
dofw_noun_head-avm := dofw_noun_head &
[MOD null].
dofm_noun_head-avm := dofm_noun_head &
[MOD null].
nom_head := noun_head-avm.
nom_head-avm := nom_head & [J-SPEC null, ADJ -].
title_head := noun_head-avm.
title_head-avm := title_head &
[MOD < [LOCAL.CAT.HEAD idiom_head] >,
J-SPEC null,
J-POSTHEAD left,
QUANTIFIABLE -].
name_head := noun_head-avm.
name_head-avm := name_head &
[J-SPEC.FIRST.LOCAL.CAT.HEAD title_head,
VN -,
QUANTIFIABLE -].
; (MS 2005-03-15) For documentation purposes, changed pn_head to surname_head
surname_head := name_head-avm.
surname_head-avm := surname_head &
[MOD < [LOCAL [CAT.HEAD name_head]] >,
J-POSTHEAD compound].
ippan_head := name_head-avm.
ippan_head-avm := ippan_head &
[MOD < [LOCAL [CAT.HEAD ordinary_noun_head]] >,
J-POSTHEAD left].
first_name_head := name_head-avm.
first_name_head-avm := first_name_head &
[MOD < [LOCAL [CAT.HEAD name_head]] >,
J-POSTHEAD compound].
other_name_head := name_head-avm.
other_name_head-avm := other_name_head &
[MOD < [LOCAL [CAT.HEAD name_head]] >,
J-POSTHEAD compound].
inst_name_head := name_head-avm.
;(MS 2005-11-15) Found examples of compounds with inst-names,
; such as "小田急片瀬江ノ島駅前". Changing MOD null to noun_head.
inst_name_head-avm := inst_name_head &
[MOD < [LOCAL.CAT.HEAD noun_head] >,
J-POSTHEAD compound].
; (MS-2005-09-30) Shouldn't the relation between a location name and an institution be a compound?
; Maybe it should just be a noun: "アメリカ経済"
loc_name_head := name_head-avm.
loc_name_head-avm := loc_name_head &
[MOD < [LOCAL.CAT.HEAD noun_head] >,
J-POSTHEAD compound].
product_name_head := name_head-avm.
product_name_head-avm := product_name_head &
[MOD null].
temp_numeral_head := temporal-noun_head.
; (MS 2005-11-04) Found examples for compounds of temp_numerals and noun (vn): "深夜営業"
; changing the MOD null value.
temp_numeral_head-avm := temp_numeral_head &
[MOD < [LOCAL.CAT.HEAD noun_head] >].
; (ERB 2001-08-07) Redoing numeral classifiers...
; (ERB 2001-08-07) Copying constraints from expanded def of old
; number-classifier_head and changing as appropriate.
; (ERB 2001-09-24) Making this COP-ARG - until data
; compels the contrary.
; (ERB 2001-10-29) I believe they should be COP-ARG +,
; but they need to be made into something predicative in order
; to function properly as the complement of the copula. So,
; I think I'll add another pumping rule.
num-cl_head := init_head &
[ MARK null,
POS numcl,
C-MOD null,
J-SPEC null,
FORMAL formal,
QUANTIFIABLE -,
VN -,
COP-ARG - ].
; 本、個、便、etc.
; (ERB 2001-08-09) Trying to get disjunctive MOD values without positing
; extra lexical entries for numeral classifiers.
; (ERB 2001-09-13) J-POSTHEAD has different values depending on what the
; MOD.HEAD value is.
num-cl-mod_head := num-cl_head &
[ MOD < synsem > ].
num-cl-n-or-p-mod_head := num-cl-mod_head &
[MOD < [LOCAL.CAT [ HEAD noun-or-case-p_head,
VAL saturated ]] > ,
J-POSTHEAD right ].
; (MS 2004-12-27) Floated numeral classifiers
; (MS 2005-01-07) Using EMPTY to prevent floated quantifiers to go into the nominal-numcl-rule.
; (FCB 2007-07-03) FIXME: make this intersective
num-cl-adv_head := num-cl-mod_head &
[ MOD < [LOCAL scopal-mod & [CAT [ HEAD verb_head]]] >,
EMPTY -].
num-cl-float_head := num-cl-adv_head.
num-cl-event_head := num-cl-adv_head.
; 番、号
; (ERB 2001-09-12) Some num-cl like things can't "float" (i.e., show
; up outside the PP. So these have a more specific MOD value).
; (MS 2004-11-30) But these should not go into the relative clause rule.
; That's why they get the J-POSTHEAD nonrels.
; (MS 2005-01-10) The modified noun should be saturated to prevent spurious
; ambiguity in e.g., 猫二匹を飼う
; The J-POSTHEAD should be right, because pre-nominal numeral classifiers are not
; possible: *二匹猫を飼う
num-cl-nmod_head := num-cl-mod_head &
[ MOD < [LOCAL.CAT [HEAD noun_head,
VAL saturated]] >,
J-POSTHEAD right].
; 円、階、etc.
num-cl-nomod_head := num-cl_head &
[ MOD null ].
; ERB (2001-08-28) Date expressions
; ERB (2001-09-24) Overhauling the date expressions. The general
; plan is treat them as nouns, which take up to three arguments:
; a determiner (この、その、あの、どの)
; an OBJ2 (月 for 日 and 年 for 月)
; an integer (1-12 for 月、1-31 for 日、unlimited for 年)
; The first two of these are optional, although ordered.
; The third is obligatory, and must occur right next to the head.
; (ERB 2002-01-14) I want to allow punct_head2 in the sentence-te-coordination
; rule without allowing it anywhere else that verbs are required. So,
; making this supertype.
verb_head-super := sentence-valid.
verb_head := verb_head-super.
;(MS 2001-09-25) I've taken S-MODIFIED out of the head in order to replace it with NUCLEUS, but not in the head.
;(ERB 2002-01-15) verb_head-avm contrasts with verbend_head, so declaring
; the feature EMPTY here causes problems: When conjunctions place restrictions
; on its value, they force type resolution from sentence-valid to
; verb_head-avm and then don't unify with inflected verbs (i.e., those
; that are HEAD verbend_head). So, moving EMPTY up to verb_head.
verb_head-avm := verb_head &
[POS v,
AUX aux,
COP bool,
VN bool,
LIGHT bool,
ADJ bool,
MODUS mood,
FIN bool,
MAIN-PRD bool,
SMOD smod].
verb-stem_head := verb_head-avm &
[VN -].
ordinary-verb-stem_head := verb-stem_head.
other-verb-stem_head := verb-stem_head.
v-stem_head := ordinary-verb-stem_head &
[AUX aux_minus,
MODUS nonpassive,
LIGHT -,
ADJ -].
cop-id-stem_head := v-stem_head &
[COP-ARG -,
COP +,
VN -,
AUX aux_minus,
LIGHT -,
ADJ -].
aux-stem_head := other-verb-stem_head &
[AUX aux_plus,
ADJ -,
LIGHT -,
COP-ARG -].
; (MS 2004-06-25) Took the ADJ - restriction out.
verbend_head := verb_head &
[COP -].
; (ERB 2002-01-11) Most verbal endings are [SMOD unmarked]:
; (FCB 2006-11-05) made a subtype of adj-or-adv_head to allow
; (do-parse-tty "とても 美味しかっ た")
; (do-parse-tty "とても 空い て いる")
v-end_head := verbend_head & adj-or-adv_head.
verbend_head-unmarked := verbend_head &
[ SMOD unmarked ].
v-op-end_head := verbend_head-unmarked & [VN -].
v-cond-end_head := v-op-end_head.
v-pass-caus-end_head := verbend_head-unmarked.
pass-end_head := v-pass-caus-end_head & [MODUS passive].
simple-pass-end_head := pass-end_head & [MOD < [LOCAL [CAT.HEAD noun_head,
BAR +]] >,
J-SPEC < [LOCAL.CAT.HEAD noun_head] >,
FIN +,
J-POSTHEAD rels,
C-MOD null,
FORMAL.AHON -].
caus-end_head := v-pass-caus-end_head & [MODUS causative,
MARK < [MODIFIED.PERIPH -] >].
contracted-aux_head := verbend_head-unmarked.
verb-noninfl_head := verb_head-avm.
verb-noninfl_head-avm := verb-noninfl_head & [AUX aux_minus].
cop_head := verb-noninfl_head-avm & [COP-ARG -, LIGHT -].
; (MS 2003-1-22) Should be COP-ARG neutr, because of 結婚するんですか
light-verb_head := other-verb-stem_head &
[AUX aux_minus,
ADJ -,
LIGHT +].
p_head := final_head.
p_head-avm := p_head &
[POS p,
PTYPE ptype,
MARK null,
CASE case].
mod-p_head := p_head-avm.
; (ERB 2002-01-22) Adverbs and such can modify things that are NUCL nucl_bool,
; but crucially not things that are NUCL conj. This forces low adverb
; attachment wrt to the conj-rule.
; (MS 2002-07-04) But this is not valid for topic particles.
; "これは聞けば分かります"
mod-p_head-avm := mod-p_head &
[CASE mod,
C-MOD null,
MOD 1-list].
vmod-p_head := mod-p_head-avm.
; (ERB 2001-09-13) Getting rid of J-POSTHEAD value intersective, in system
; with only two HMRs. See notes in japgram.tdl and rule-types.tdl.
; (MS 2001-11-29) Making all these intersective-mod for the differentiation in the head-adjunct rules.
vmod-p_head-avm := vmod-p_head &
[J-SPEC null,
MOD < [LOCAL intersective-mod &
[CAT.HEAD verb_head,
BAR +]] >,
J-POSTHEAD left].
; (ERB 2002-01-21) How bad is it for ambiguity if this doesn't
; say MOD...SMOD unmarked? (I'm using that to constrain some other
; things and it would be nice if the head type were enough here.)
; (MS 2004-11-12) Here we restrict the MOD to be MAIN-PRD +. But this is not true
; in all cases: 社内でも有名な王が寝る。Here we want to be able to say that the king is
; famous in the company. I wonder how much this affects the ambiguity.
;topic-vmod-p_head := vmod-p_head-avm & [MOD < [LOCAL [CAT.HEAD [MAIN-PRD +]] ] >,
; PTYPE topic,
; COP-ARG -].
topic-vmod-p_head := vmod-p_head-avm & [PTYPE topic,
COP-ARG -].
; (MS 2005-05-10) Not used any more.
;uttmod-p_head := mod-p_head-avm &
; [J-SPEC null,
; MOD < [LOCAL [CAT.HEAD verb_head & [FIN +,
; MAIN-PRD +],
; BAR +,
; NUCL nucl_bool]] >,
; J-POSTHEAD left,
; COP-ARG -].
nmod-p_head := mod-p_head-avm.
;"dekitara issho ni hanoofaa no kaNkou shimaseN ka."
;"asa no juuji ni rufutohaNza no nanahyaku yoNjuuichi biN ga dete imasu keredomo."
nmod-p_head-avm := nmod-p_head &
[MOD < [ LOCAL.NUCL nucl_bool ] >,
J-POSTHEAD left,
COP-ARG -].
overt-nmod-p_head := nmod-p_head-avm &
[PTYPE overt,
J-SPEC null,
MOD < [LOCAL [ CAT [HEAD noun_head,
VAL saturated]],
MODIFIED.PERIPH bool] > ].
; (MS 2001-12-14) The COP-ARG - is introduced to prevent spurious ambiguity in II NO DESU KA.
nspec-p_head := p_head-avm & [MOD null,
COP-ARG -,
C-MOD null,
PTYPE overt,
J-SPEC.FIRST.LOCAL.CAT.HEAD nom_head].
empty-nmod-p_head := nmod-p_head-avm &
[PTYPE empty,
J-SPEC null,
MOD < [LOCAL.BAR -] >,
COP-ARG -].
; (MS 2005-10-21) "C-MOD < [MODIFIED.PERIPH -]" prevents the case of compounds in conjunctions.
; Changing that.
n_conj_head := p_head-avm & [MOD null,
CASE con,
PTYPE to,
J-SPEC null,
C-MOD < [MODIFIED.PERIPH bool] >].
;"ato saNgatsu desu to yahari juuninichi no mokuyoubi kara hatsuka kiNyoubi made no hou ga tsugou yoroshii no desu ga."
empty-vmod-p_head := vmod-p_head-avm & [PTYPE empty,
MOD < [LOCAL [CAT.HEAD.MAIN-PRD +,
NUCL nucl_bool]] >,
COP-ARG -].
empty-frag-p_head := p_head-avm & [PTYPE empty,
MOD null,
C-MOD null,
COP-ARG -].
case-p_head := p_head-avm &
[CASE case,MOD null,J-SPEC null,C-MOD null,
COP-ARG -].
overt-case-p_head := case-p_head & [PTYPE overt].
; (ERB 2001-08-09) Adding supertype that relates case-p_head to noun_head for
; numeral classifiers.
ga-or-wo-case-p_head := overt-case-p_head & noun-or-case-p_head & [CASE ga-or-wo].
empty-case-p_head := case-p_head & [PTYPE empty].
; (MS & FCB 2003-10-29) added AUX aux_minus to get rid of spurious ambiguity in 普通 と 違っ て いる.
; (MS 2004-11-05) But now we don't get aspectual readings in 家から父が運んでいる . So, I take
; it out again.
postp_head := vmod-p_head-avm &
[PTYPE overt,
MOD < [LOCAL [NUCL nucl_bool,
CAT.HEAD.AUX aux]] >,
COP-ARG +].
; (MS & FCB 2003-10-29) added AUX aux_minus to get rid of spurious ambiguity in 普通 と 違っ て いる.
; (MS 2004-11-05) But now we don't get aspectual readings in 家で父が運んでいる . So, I take
; it out again.
adv-p_head := vmod-p_head-avm &
[PTYPE overt,
MOD < [LOCAL [NUCL nucl_bool,
CAT.HEAD.AUX aux]] >,
COP-ARG -].
idiom_head := sentence-valid &
[POS idiom,
MOD null,
C-MOD < [LOCAL [CAT [HEAD sentence-valid & [MAIN-PRD +,
FIN +],
VAL saturated],
BAR +]] >,
J-POSTHEAD left,
MARK null,
COP-ARG -,
J-SPEC null].
sap_head := p_head-avm &
[J-SPEC null,
MARK null,
MOD 0-1-list,
SMOD marked,
PTYPE sentence-particle,
MAIN-PRD -,
J-POSTHEAD left] .
; (MS 2005-05-17) This is not needed any more!
;sap1_head := p_head-avm &
; [POS sap,
; J-SPEC null,
; MARK null,
; MOD 0-1-list,
; SMOD unmarked,
; J-POSTHEAD left,
; COP-ARG -] .
; (ERB 2001-09-06) Conjunctions should only modify finite sentences.
; (ERB 2002-01-07) They also have to be able to modify finite sentences
; like V-te + kudasai. Adding a type utt-valid to describe this class.
; (was: C-MOD.LOCAL.CAT.HEAD sentence-valid).
; (ERB 2002-01-07) That doesn't give quite the right result because
; when the second conjunct is 〜ください, the message is already there
; and the message contributed by the conjunction is irrelevant. A
; short-term solution is to make two kinds of conjunctions: those that
; are [C-MOD sentence-valid] and supply two messages and those that
; are [C-MOD s-end_head] and supply just one message. In the long run,
; we might think about revamping the way messages are introduced.
; Also, we might worry some more about the relative scope of messages
; and the conj-rel in different constructions.
; (MS 2005-06-07) It seems that this one is never applied.
s-conj_head := sap_head &
[MOD null,
CASE con,
COP-ARG -,
C-MOD < [LOCAL [CAT [HEAD sentence-valid & [MAIN-PRD +,
FIN +,
SMOD unmarked],
VAL saturated],
BAR +]] >,
J-POSTHEAD left].
; (ERB 2002-01-07) Want this to apply to vn+kudasai as well, which is
; actually HEAD v-end_head. So, change [HEAD s-end_head] to
; [HEAD utt-valid & [SMOD marked]]. (utt-valid groups together
; sentence-valid and s-end_head.
; (MS 2005-05-18) But this prevents "食べたから寝た" from parsing. So, I took the restriction out.
s-conj-nonprop_head := sap_head &
[MOD null,
COP-ARG -,
C-MOD < [LOCAL [CAT [HEAD utt-valid &
[ FIN + ],
VAL saturated],
BAR +]] >,
J-POSTHEAD left].
; (ERB 2002-01-07) utt-valid groups together sentence-valid and
; s-end_head. (Added for conjunction with non-propositional right
; conjuncts.)
s-end_head := sap_head & utt-valid.
s-end_head-avm := s-end_head &
[MOD null,
C-MOD null,
J-POSTHEAD left].
interj_head := final_head.
; (ERB 2001-12-10) These aren't doing anything semantically, so
; make them use the intersective head adj rule.
; (ERB 2001-12-10) Making them more like "well" and "so" in the LinGO
; grammar. Among other things, this means they're scopal modifiers.
; (ERB 2001-12-10) The corresponding words in the LinGO grammar only
; attach to matrix sentences. Try making these guys [MOD utt]. This
; would save us having to put in a message for the sentence they
; attach to (can't tell what it will be anyway). Should also force
; high attachment.
; try making CAT.HEAD utterance-super rather than sentence-valid to reduce ambiguity
interj_head-avm := interj_head &
[POS interj,
J-SPEC null,
MARK null,
MOD < [LOCAL scopal-mod &
[CAT.HEAD utterance-super]] >,
C-MOD null,
J-POSTHEAD left,
COP-ARG -].
excl_head := idiom_head &
[J-SPEC null,
MARK null].
det_head := final_head.
det_head-avm := det_head &
[POS det,
MARK null,
KEYS.KEY def_q_rel,
J-SPEC < [LOCAL [CAT.HEAD noun_head,
BAR +],
MODIFIED.PERIPH bool] >,
MOD null,
C-MOD null,
COP-ARG -].
; (MS 2002-04-17) DAI behaves like a definite determiner on counted nouns: 一本 - one book, 第一本 - the first book.
; I've thus made it a determiner that specifies counted nouns.
; I could not think of a solution that changes the card-rel to ord-rel, though.
card2ord_head-avm := det_head &
[POS det,
MARK null,
J-SPEC < [LOCAL [CAT.HEAD noun_head,
BAR +],
LKEYS.KEYREL reg-nom-relation,
MODIFIED.PERIPH bool] >,
MOD null,
C-MOD null,
COP-ARG -].
vn_head := verb-noninfl_head-avm.
; (ERB 2001-09-03) If I want the vn-light verb combination to be done via the
; head-spr rule, I need VNs to have a compatible J-SPEC value.
; (ERB 2001-09-19) I'm trying to keep the output of v2vn-infl-rule
; from being the complement of nspec-no-3, which is supposed to attach
; to te forms. So as a first pass, I'm going to say that all vns
; are [H-TENSE no_tense]. This also requires a change to light verbs.
; (MS 2001-11-22) I take the MODUS indicative restriction out in order to allow VNs to combine with light verbs in, e.g., potential mode.
; (ERB 2001-12-28) For VN + itadaku, these can't be J-SPEC null, if that combination
; is to happen via the head-spr rule. Try J-SPEC ... HEAD aux-stem_head
; (ERB 2002-01-02) That's overly restrictive if VN + kudasai is vn-vend-rule
; (subtype of head-spr rule). Try J-SPEC ... HEAD verb_head, and hope it doesn't
; overgenerate.
; (ERB 2002-01-02) It does over generate, since suru is also looking for a
; vn specifier. Try adding constraint [LIGHT -]. (Assumes that the
; vn-light-rule doesn't check the J-SPEC value of the VN.)
; (MS 2002-02-08) Took the HEAD restriction out. Then, also VNs can be specifiers of
; nominalizations as in "変更届けを提出済ですが".
vn_head-avm := vn_head &
[MOD null,
C-MOD null,
MODUS mood,
FIN -,
VN +,
J-SPEC.FIRST.LOCAL.CAT.HEAD [LIGHT -],
MARK < [LOCAL [CAT.HEAD verb_head,
BAR +]] >,
COP-ARG -].
; (ERB 2001-09-03) Can't require HEAD light-verb_head of J-SPEC value because
; that's MOD none, but the inflected light verb is MOD synsem.
;;; FCM FIXME - do we need this and the stem head?
i-adj_head := verb_head-avm &
[VN -,
C-MOD null,
AUX aux_minus,
COP -,
LIGHT -,
ADJ +,
J-POSTHEAD rels,
COP-ARG -].
adj_head := adj-or-adv_head.
; (MS 2002-1-7) This should have an ADJ +, shouldn't it?
; (MS 2002-1-15) changed the J-SPEC from verbend_head-unmarked to verbend_head, otherwise 小さかった wouldn't parse.
; (MS 2002-12-04) Took the J-SPEC value out. Otherwise, 小さいこと would not parse.
; (FCB 2006-05-11) Added adj_head as another parent (to allow deg-adv to modify i-adj)
; also use for pred-adj-lex: ookina
; adj-head must be COP + to allow 美しい です
i-adj-stem_head := other-verb-stem_head & adj_head &
[ADJ +].
na-adj_head := adj_head &
[COP-ARG -,
C-MOD null,