forked from tshatrov/ichiran
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dict-errata.lisp
1199 lines (1038 loc) · 47 KB
/
dict-errata.lisp
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
(in-package :ichiran/dict)
(defun find-conj (seq-from options)
(destructuring-bind (conj-type pos neg fml) options
(query
(:select 'conj.id
:from (:as 'conjugation 'conj)
:inner-join (:as 'conj-prop 'prop)
:on (:= 'prop.conj-id 'conj.id)
:where (:and (:= 'conj.from seq-from)
(:= 'prop.conj-type conj-type)
(:= 'prop.pos pos)
(:=== 'prop.neg neg)
(:=== 'prop.fml fml)))
:column)))
(defun add-conj (seq-from options reading-map)
(unless (find-conj seq-from options)
(destructuring-bind (conj-type pos neg fml) options
(let ((next-seq (next-seq)))
(make-dao 'entry :seq next-seq :content "")
(loop with ord-r = 0 and ord-k = 0
for (src-reading reading) in reading-map
for is-kana = (test-word reading :kana)
for table = (if is-kana 'kana-text 'kanji-text)
for ord = (if is-kana ord-r ord-k)
do (make-dao table :seq next-seq :text reading :ord ord :common :null)
(if is-kana (incf ord-r) (incf ord-k)))
(let ((conj (make-dao 'conjugation :seq next-seq :from seq-from)))
(make-dao 'conj-prop :conj-id (id conj)
:pos pos :conj-type conj-type :neg neg :fml fml)
(loop for (src-reading reading) in reading-map
do (make-dao 'conj-source-reading :conj-id (id conj)
:text reading
:source-text src-reading)))))))
(defun add-reading (seq reading &key (common :null) (conjugate-p t))
(let* ((is-kana (test-word reading :kana))
(table (if is-kana 'kana-text 'kanji-text))
(entry (get-dao 'entry seq)))
(when (not (select-dao table (:and (:= 'seq seq) (:= 'text reading))))
(let* ((maxord (query (:select (:max 'ord) :from table :where (:= 'seq seq)) :single))
(ord (if (eql maxord :null) 0 (1+ maxord))))
(make-dao table :text reading :seq seq :ord ord :common common :conjugate-p conjugate-p)
(if is-kana
(incf (n-kana entry))
(incf (n-kanji entry)))
(update-dao entry)))
entry))
(defun replace-reading (seq reading-from reading-to)
(let* ((is-kana (test-word reading-from :kana))
(table (if is-kana 'kana-text 'kanji-text))
(updated
(nth-value 1
(query (:update table
:set 'text reading-to
:where (:and (:= 'seq seq) (:= 'text reading-from)))))))
(unless (zerop updated)
(reset-readings seq))))
(defun reset-readings (&rest seqs)
(let ((readings (nconc
(select-dao 'kana-text (:in 'seq (:set seqs)))
(select-dao 'kanji-text (:in 'seq (:set seqs))))))
(mapcar 'set-reading readings)))
(defun delete-reading (seq reading)
(let* ((is-kana (test-word reading :kana))
(table (if is-kana 'kana-text 'kanji-text))
(entry (get-dao 'entry seq))
(to-delete (select-dao table (:and (:= 'seq seq) (:= 'text reading))))
(deleted 0))
(when to-delete
(dolist (obj to-delete)
(delete-dao obj)
(incf deleted))
(if is-kana
(decf (n-kana entry) deleted)
(decf (n-kanji entry) deleted))
(update-dao entry)
(loop for obj in (select-dao table (:= 'seq seq) 'ord)
for ord from 0
do (setf (slot-value obj 'ord) ord) (update-dao obj))
(reset-readings seq))))
(defun root-diff (base-text reading)
(loop
with lb = (length base-text) and lr = (length reading)
for ib from (1- lb) downto 0
for ir from (1- lr) downto 0
when (char/= (char base-text ib) (char reading ir))
do (return (values (1+ ib) (1+ ir)))
finally (return (if (>= lr lb) (values 0 (- lr lb)) (values (- lb lr) 0)))))
(defun root-diff-fn (base-text reading)
(multiple-value-bind (b r) (root-diff base-text reading)
(lambda (text)
(concatenate 'string (subseq reading 0 r) (subseq text b)))))
(defun add-conj-reading (seq reading)
(let* ((is-kana (test-word reading :kana))
(table (if is-kana 'kana-text 'kanji-text))
(base-text (query (:select 'text :from table :where (:and (:= 'seq seq) (:= 'ord 0))) :single))
(diff-fn (root-diff-fn base-text reading)))
(loop for conj in (select-dao 'conjugation (:= 'from seq))
for entry = (get-dao 'entry (seq conj))
for base = (car (select-dao table (:and (:= 'seq (seq conj)) (:= 'ord 0))))
for new-text = (funcall diff-fn (text base))
unless (select-dao table (:and (:= 'seq (seq conj)) (:= 'text new-text)))
do (let ((maxord (query (:select (:max 'ord) :from table :where (:= 'seq (seq conj))) :single))
(source-text (query (:select 'source-text :from 'conj-source-reading
:where (:and (:= 'conj-id (id conj)) (:= 'text (text base)))) :single)))
(make-dao table :text new-text :seq (seq conj) :ord maxord :common :null :conjugate-p (conjugate-p base))
(make-dao 'conj-source-reading :conj-id (id conj) :text new-text :source-text (funcall diff-fn source-text))
(if is-kana
(incf (n-kana entry))
(incf (n-kanji entry)))
(update-dao entry)))))
(defun delete-senses (seq prop-test)
(let* ((sense-props (remove-if-not prop-test (select-dao 'sense-prop (:= 'seq seq))))
(sense-ids (remove-duplicates (mapcar #'sense-id sense-props))))
(query (:delete-from 'sense-prop :where (:in 'sense-id (:set sense-ids))))
(query (:delete-from 'gloss :where (:in 'sense-id (:set sense-ids))))
(query (:delete-from 'sense :where (:in 'id (:set sense-ids))))))
(defun delete-sense-prop (seq tag text)
(let ((props (select-dao 'sense-prop (:and (:= 'seq seq) (:= 'tag tag) (:= 'text text)))))
(mapc #'delete-dao props)))
(defun add-sense-prop (seq sense-ord tag text)
(let ((sense (car (select-dao 'sense (:and (:= 'seq seq) (:= 'ord sense-ord))))))
(when sense
(unless (select-dao 'sense-prop (:and (:= 'sense-id (id sense)) (:= 'tag tag) (:= 'text text)))
(make-dao 'sense-prop :sense-id (id sense) :tag tag :text text :ord 0 :seq seq)))))
(defun add-sense (seq ord &rest glosses)
(unless (select-dao 'sense (:and (:= 'seq seq) (:= 'ord ord)))
(let ((sense-id (id (make-dao 'sense :seq seq :ord ord))))
(loop for gord from 0
for gloss in glosses
do (make-dao 'gloss :sense-id sense-id :text gloss :ord gord)))))
(defun add-new-sense* (seq pos &rest glosses)
(add-new-sense seq (list pos) glosses))
(defun add-gloss (seq ord &rest texts)
(let* ((sense-id (query (:select 'id :from 'sense :where (:and (:= 'seq seq) (:= 'ord ord))) :single))
(glosses (select-dao 'gloss (:= 'sense-id sense-id) (:desc :ord)))
(glosses-text (mapcar 'text glosses))
(max-ord (if glosses (1+ (ord (car glosses))) 0)))
(loop for new-text in texts
unless (find new-text glosses-text :test 'equal)
do (make-dao 'gloss :sense-id sense-id :text new-text :ord max-ord)
(incf max-ord))))
(defun set-common (table seq text common)
(loop for kt in (select-dao table (:and (:= 'seq seq) (:= 'text text)))
do (setf (slot-value kt 'common) common)
(update-dao kt)))
(defun add-deha-ja-readings ()
(let ((deha-list (query (:select 'conj.seq 'kt.text :distinct
:from (:as 'conjugation 'conj) (:as 'kana-text 'kt)
:where (:and (:= 'conj.from 2089020)
(:= 'kt.seq 'conj.seq)
(:like 'kt.text "では%"))))))
(loop for (seq deha) in deha-list
for ja = (concatenate 'string "じゃ" (subseq deha 2))
do (add-reading seq ja)))
(let ((deha-src-reading (query (:select 'csr.conj-id 'csr.text 'csr.source-text
:from (:as 'conjugation 'conj) (:as 'conj-source-reading 'csr)
:where (:and (:= 'conj.from 2089020)
(:= 'csr.conj-id 'conj.id)
(:like 'csr.text "では%"))))))
(loop for (conj-id text source-text) in deha-src-reading
for ja = (concatenate 'string "じゃ" (subseq text 2))
for jsr = (select-dao 'conj-source-reading (:and (:= 'conj-id conj-id) (:= 'text ja) (:= 'source-text source-text)))
unless jsr
do (make-dao 'conj-source-reading :conj-id conj-id
:text ja
:source-text (if (alexandria:starts-with-subseq "では" source-text)
(concatenate 'string "じゃ" (subseq source-text 2))
source-text)))))
(defun delete-conjugation (seq from &optional (via :null))
(let ((conj (query-dao 'conjugation
(:select '* :from 'conjugation
:where (:and (:= 'seq seq)
(:= 'from from)
(:=== 'via via)))))
(entry (get-dao 'entry seq)))
(when conj
(let* ((conj-ids (mapcar #'id conj))
(delete-entry (not (or (root-p entry)
(select-dao 'conjugation (:and (:= 'seq seq)
(:not (:in 'id (:set conj-ids))))))))
)
(query (:delete-from 'conj-prop :where (:in 'conj-id (:set conj-ids))))
(query (:delete-from 'conj-source-reading :where (:in 'conj-id (:set conj-ids))))
(query (:delete-from 'conjugation :where (:in 'id (:set conj-ids))))
(when delete-entry
(delete-dao entry))))))
(defun remove-hiragana-nokanji ()
(loop with kts = (remove-if-not (lambda (kt) (test-word (text kt) :hiragana))
(select-dao 'kana-text 'nokanji))
for entry in (select-dao 'entry (:and (:in 'seq (:set (mapcar #'seq kts))) 'primary-nokanji))
do (setf (slot-value entry 'primary-nokanji) nil)
(update-dao entry)))
(defun set-primary-nokanji (seq value)
(let ((entry (get-dao 'entry seq)))
(setf (slot-value entry 'primary-nokanji) value)
(update-dao entry)))
(defun rearrange-readings (seq table prefix)
"Rearrange readings with prefix before the rest of them"
(loop
with offset = (query (:select (:count 'id) :from table
:where (:and (:= 'seq seq) (:like 'text (:|| prefix "%"))))
:single)
with cnt1 = -1 and cnt2 = (1- offset)
for kt in (select-dao table (:= 'seq seq) 'ord)
for new-ord = (if (alexandria:starts-with-subseq prefix (text kt))
(incf cnt1) (incf cnt2))
do (setf (slot-value kt 'ord) new-ord) (update-dao kt)))
(defun rearrange-readings-conj (seq table prefix)
(rearrange-readings seq table prefix)
(dolist (seq (query (:select 'seq :distinct :from 'conjugation :where (:= 'from seq)) :column))
(rearrange-readings seq table prefix)))
(defmacro do-readings (table seq text (rvar) &body body)
"text can be nil for all readings from table"
`(dolist (,rvar (select-dao ,table (:and (:= 'seq ,seq) ,@(when text `((:= 'text ,text))))))
,@body))
(defun add-primary-nokanji (seq reading)
(set-primary-nokanji seq t)
(do-readings 'kana-text seq reading (kt)
(setf (slot-value kt 'nokanji) t)
(update-dao kt)))
(defun get-all-readings (seq)
(query (:union
(:select 'text :from 'kanji-text :where (:= 'seq seq))
(:select 'text :from 'kana-text :where (:= 'seq seq)))
:column))
(defun add-gozaimasu-conjs (&key reset &aux (seqs '(1612690 2253080)))
(when reset
(loop for conj in (select-dao 'conjugation (:in 'from (:set seqs)))
do (delete-conjugation (seq conj) (seq-from conj))))
(loop for seq in seqs
for readings = (get-all-readings seq)
do (loop for (conj suf) in '(((1 "exp" t :null) "せん")
((2 "exp" :null :null) "した")
((3 "exp" :null :null) "して")
((9 "exp" :null :null) "しょう")
((11 "exp" :null :null) "したら")
((12 "exp" :null :null) "したり")
)
do (add-conj seq conj
(loop for reading in readings
collect (list reading (apply-patch reading (cons suf "す"))))))))
(defun conjugate-da (&key (seq 2089020))
;; JMdict might have renamed cop-da to cop, but the data csvs still use cop-da
;; which causes だ to not conjugate, which is bad
(unless (select-dao 'sense-prop (:and (:= 'seq seq) (:= 'tag "pos") (:= 'text "cop-da")))
(add-sense-prop seq 0 "pos" "cop-da")
(conjugate-entry-outer seq)))
(defun add-errata ()
(conjugate-da)
(add-deha-ja-readings)
(remove-hiragana-nokanji)
(add-gozaimasu-conjs)
(set-primary-nokanji 1538900 nil) ;; ただ
(set-primary-nokanji 1580640 nil) ;; 人
(set-primary-nokanji 1289030 nil) ;; いまいち
(add-primary-nokanji 1415510 "タカ")
;; きみ / キミ
(delete-reading 1247250 "キミ")
(add-reading 2015370 "ワシ")
(add-reading 1202410 "カニ")
(delete-reading 1521960 "ボツ")
(add-reading 2145800 "イラ")
(add-reading 1517840 "ハチ")
(set-common 'kana-text 1517840 "ハチ" 34)
(add-reading 2029080 "ねぇ")
(add-reading 2089020 "じゃ" :common 0 :conjugate-p nil)
(delete-reading 2145800 "いら")
(delete-reading 2067160 "たも")
(delete-reading 2423450 "サシ")
(delete-reading 2574600 "どうなん")
;;; delete sense-prop uk for 生る
(delete-sense-prop 1611000 "misc" "uk")
;; 仕手 (して)
(delete-sense-prop 1305070 "misc" "uk")
;; 品 ( しな)
(delete-sense-prop 1583470 "misc" "uk")
;; しな
(delete-sense-prop 1446760 "misc" "uk")
;; だし
(delete-sense-prop 1302910 "misc" "uk")
;; う
(delete-sense-prop 2802220 "misc" "uk")
;; もち
(delete-sense-prop 1535790 "misc" "uk")
;; なんだ
(delete-sense-prop 2119750 "misc" "uk")
;; つ
(delete-sense-prop 2220330 "misc" "uk")
;; かけ
(delete-sense-prop 1207600 "misc" "uk")
;; かく
(delete-sense-prop 1399970 "misc" "uk")
;; らい
(delete-sense-prop 2094480 "misc" "uk")
;; いる
(delete-sense-prop 2729170 "misc" "uk")
;; 人
(delete-sense-prop 1580640 "misc" "uk")
;; かし
(delete-sense-prop 1569440 "misc" "uk")
;; さし
(delete-sense-prop 2423450 "misc" "uk")
;; 行く
(delete-sense-prop 1578850 "misc" "uk")
;; 罹る
(delete-sense-prop 1609500 "misc" "uk")
;; 吐く
(delete-sense-prop 1444150 "misc" "uk")
;; 要る
(delete-sense-prop 1546640 "misc" "uk")
;; ことなく
(delete-sense-prop 1314490 "misc" "uk")
;; やす
(delete-sense-prop 2643710 "misc" "uk")
;; はねる
(delete-sense-prop 1611260 "misc" "uk")
;; かける
(delete-sense-prop 2208960 "misc" "uk")
;; もって
(delete-sense-prop 1155020 "misc" "uk")
;; かっこ
(delete-sense-prop 1208240 "misc" "uk")
;; かかる
(delete-sense-prop 1207590 "misc" "uk")
;; かまう
(delete-sense-prop 1279680 "misc" "uk")
;; ないし
(delete-sense-prop 1469810 "misc" "uk")
;; むく
;; regrettably, but volitional form clashes with 向こう
(delete-sense-prop 1474370 "misc" "uk")
;; うたう
(delete-sense-prop 1609300 "misc" "uk")
;; ひく
(delete-sense-prop 1612920 "misc" "uk")
;; まめ
(delete-sense-prop 2827450 "misc" "uk")
;; たかる
(delete-sense-prop 1333570 "misc" "uk")
;; つける
(delete-sense-prop 1610400 "misc" "uk")
;; つく
(delete-sense-prop 2097190 "misc" "uk")
;; こころ
;; (add-sense-prop 1360480 0 "misc" "uk")
;; そういう
(add-sense-prop 1394680 0 "misc" "uk")
;; すごく
(add-sense-prop 2272830 0 "misc" "uk")
;; ごめんなさい
(add-sense-prop 1270680 0 "misc" "uk")
;; ありがたい
(add-sense-prop 1541560 0 "misc" "uk")
;; わけない
(add-sense-prop 1739410 1 "misc" "uk")
;; かける
(add-sense-prop 1207610 0 "misc" "uk")
;; やつめ
(add-sense-prop 2424410 0 "misc" "uk")
;; セミ
(add-sense-prop 1387080 0 "misc" "uk")
;; くせ
(add-sense-prop 1509350 0 "misc" "uk")
;; はやる
(add-sense-prop 1637460 0 "misc" "uk")
;; なの
(add-sense-prop 2425930 0 "pos" "prt")
;; わね
(add-sense-prop 2457930 0 "pos" "prt")
;; とん
(delete-sense-prop 2629920 "pos" "adv-to")
;; set/unset common flag for choice kana readings
(set-common 'kana-text 1310920 "したい" :null)
(set-common 'kana-text 1159430 "いたい" :null)
(set-common 'kana-text 1523060 "ほんと" 2)
(set-common 'kana-text 1577100 "なん" 2)
(set-common 'kana-text 1012440 "めく" :null)
(set-common 'kana-text 1005600 "しまった" :null)
(set-common 'kana-text 2139720 "ん" 0)
(set-common 'kana-text 1309910 "してい" 0)
(set-common 'kana-text 1311320 "してい" 0)
(set-common 'kana-text 1423310 "なか" 1)
(set-common 'kanji-text 1245280 "空" 0)
(set-common 'kana-text 1308640 "しない" 0)
(set-common 'kana-text 1579130 "ことし" 0)
(set-common 'kana-text 2084660 "いなくなった" 0)
(set-common 'kana-text 1570850 "すね" :null)
(set-common 'kana-text 1470740 "のうち" 0)
(set-common 'kana-text 1156100 "いいん" 0)
(set-common 'kana-text 1472520 "はいいん" :null)
(set-common 'kana-text 1445000 "としん" 0)
(set-common 'kana-text 1408100 "たよう" 0)
(set-common 'kana-text 2409180 "ような" 0)
(set-common 'kana-text 1524550 "まいそう" :null)
(set-common 'kana-text 1925750 "そうする" :null)
(set-common 'kana-text 1587780 "いる" :null)
(set-common 'kana-text 1322180 "いる" :null)
(set-common 'kana-text 1391500 "いる" :null)
(set-common 'kanji-text 1606560 "分かる" 11)
(set-common 'kana-text 1606560 "わかる" 11)
(set-common 'kanji-text 1547720 "来る" 11)
(set-common 'kana-text 1547720 "くる" 11)
(set-common 'kana-text 2134680 "それは" 0)
(set-common 'kana-text 2134680 "そりゃ" 0)
(set-common 'kana-text 1409140 "からだ" 0)
(set-common 'kana-text 1552120 "ながす" :null)
(set-common 'kana-text 1516930 "ほう" 1)
(set-common 'kana-text 1518220 "ほうが" :null)
(set-common 'kana-text 1603340 "ほうが" :null)
(set-common 'kana-text 1158400 "いどう" :null)
(set-common 'kana-text 1157970 "いどう" :null)
(set-common 'kana-text 1599900 "になう" :null)
(set-common 'kana-text 1465590 "はいる" :null)
(set-common 'kana-text 1535930 "とい" 0)
(set-common 'kana-text 1472480 "はいらん" :null)
(set-common 'kanji-text 2019640 "杯" 20)
(set-common 'kana-text 1416220 "たち" 10)
(set-common 'kana-text 1402900 "そうなん" :null)
(set-common 'kana-text 1446980 "いたむ" :null)
(set-common 'kana-text 1432710 "いたむ" :null)
(set-common 'kana-text 1632670 "かむ" :null)
(set-common 'kana-text 1224090 "きが" 40)
(set-common 'kana-text 1534470 "もうこ" :null)
(set-common 'kana-text 1739410 "わけない" 0)
(set-common 'kanji-text 1416860 "誰も" 0)
(set-common 'kana-text 2093030 "そっか" 0)
(set-common 'kanji-text 1001840 "お兄ちゃん" 0)
(set-common 'kanji-text 1341350 "旬" 0)
(set-common 'kana-text 1188790 "いつか" 0)
(set-common 'kana-text 1582900 "もす" :null)
(set-common 'kana-text 1577270 "セリフ" 0)
(set-common 'kana-text 1375650 "せいか" 0)
(set-common 'kanji-text 1363540 "真逆" :null)
(set-common 'kana-text 1632200 "どうか" 0)
(set-common 'kanji-text 1920245 "何の" 0)
(set-common 'kana-text 2733410 "だよね" 0)
(set-common 'kana-text 1234260 "ともに" 0)
(set-common 'kanji-text 2242840 "未" 0)
(set-common 'kana-text 1246890 "リス" 0)
(set-common 'kana-text 1257270 "やらしい" 0)
(set-common 'kana-text 1343100 "とこ" 0)
(set-common 'kana-text 1529930 "むこう" 14)
(set-common 'kanji-text 1317910 "自重" 30)
(set-common 'kana-text 1586420 "あったかい" 0)
(set-common 'kana-text 1214190 "かんない" :null)
(set-common 'kana-text 1614320 "かんない" :null)
(set-common 'kana-text 1517220 "ほうがい" :null)
(set-common 'kana-text 1380990 "せいなん" :null)
(set-common 'kana-text 1280630 "こうなん" :null)
(set-common 'kana-text 1289620 "こんなん" :null)
(set-common 'kana-text 1204090 "がいまい" :null)
(set-common 'kana-text 1459170 "ないほう" :null)
(set-common 'kana-text 2457920 "ですか" :null)
(set-common 'kana-text 1228390 "すいもの" :null)
(set-common 'kana-text 1423240 "きもの" 0)
(set-common 'kana-text 1212110 "かんじ" 0)
(set-common 'kana-text 1516160 "たから" 0)
(set-common 'kana-text 1575510 "コマ" 0)
(set-common 'kanji-text 1603990 "街" 0)
(set-common 'kana-text 1548520 "からむ" :null)
(set-common 'kana-text 2174250 "もしや" 0)
(set-common 'kana-text 1595080 "のく" :null)
(set-common 'kana-text 1309950 "しどう" 0)
(set-common 'kana-text 1524860 "まくら" 9)
(set-common 'kanji-text 1451770 "同じよう" 30)
(set-common 'kana-text 1244210 "くない" 0)
(set-common 'kana-text 1898260 "どうし" 11)
(set-common 'kanji-text 1407980 "多分" 1)
(set-common 'kana-text 1579630 "なのか" :null)
(set-common 'kana-text 1371880 "すいてき" :null)
(set-common 'kana-text 1008420 "でしょ" 0)
(set-common 'kana-text 1928670 "だろ" 0)
(set-common 'kanji-text 1000580 "彼" :null)
(set-common 'kana-text 1546380 "ようと" 0)
(set-common 'kana-text 2246510 "なさそう" 0)
(set-common 'kanji-text 2246510 "無さそう" 0)
(set-common 'kana-text 1579110 "きょう" 2)
(set-common 'kana-text 1235870 "きょう" :null)
(set-common 'kana-text 1587200 "いこう" 11)
(set-common 'kana-text 1158240 "いこう" 0)
(set-common 'kana-text 1534440 "もうまく" :null)
(set-common 'kana-text 1459400 "ないよう" 0)
(set-common 'kana-text 1590480 "カッコ" 0)
(set-common 'kana-text 1208240 "カッコ" 0)
(set-common 'kana-text 1495770 "つける" 11)
(set-common 'kana-text 1610400 "つける" 12)
(set-common 'kana-text 1495740 "つく" 11)
(set-common 'kanji-text 1495740 "付く" 11)
;; remove sense for なり and make it not root
(delete-senses 2611370 (constantly t))
(let ((entry (get-dao 'entry 2611370)))
(setf (slot-value entry 'root-p) nil)
(update-dao entry))
(delete-reading 2611370 "為り")
;; 包む is read as tsutsumu
(rearrange-readings-conj 1584060 'kana-text "つつ")
(set-common 'kana-text 1584060 "つつむ" 6)
(rearrange-readings-conj 1602880 'kanji-text "増や")
;; delete noun sense for と
(delete-senses 1008490 (lambda (prop) (and (equal (text prop) "n") (equal (tag prop) "pos"))))
;; delete prt sense for たい
(delete-senses 2017560 (lambda (prop) (and (equal (text prop) "prt") (equal (tag prop) "pos"))))
;; delete adj stem conjugation for ない
(delete-conjugation 2029110 2257550)
(delete-conjugation 2086640 2684620) ;; しい
(add-errata-feb17)
(add-errata-jan18)
(add-errata-mar18)
(add-errata-aug18)
(add-errata-jan19)
(add-errata-apr19)
(add-errata-jan20)
(add-errata-apr20)
(add-errata-jul20)
(add-errata-jan21)
(add-errata-may21)
(add-errata-jan22)
(add-errata-counters)
(ichiran/custom:load-custom-data '(:extra) t)
)
(defun add-errata-feb17 ()
(set-common 'kana-text 2136890 "とする" :null)
(set-common 'kana-text 2100900 "となる" :null)
(set-common 'kana-text 1006200 "すべき" :null)
(set-common 'kana-text 2683060 "なのです" :null)
(set-common 'kana-text 2683060 "なんです" :null)
(set-common 'kana-text 1001200 "おい" :null)
(set-common 'kana-text 1001200 "おおい" :null)
(set-common 'kanji-text 1441840 "伝い" 0)
(set-common 'kanji-text 1409140 "身体" 0)
(set-common 'kanji-text 2830705 "身体" :null)
(set-common 'kana-text 1009040 "どきっと" 0)
(set-common 'kana-text 2261300 "するべき" :null)
(set-common 'kana-text 2215430 "には" :null)
(set-common 'kana-text 2210140 "まい" :null)
(set-common 'kana-text 2192950 "なさい" :null)
(set-common 'kana-text 2143350 "かも" :null)
(set-common 'kana-text 2106890 "そのよう" :null)
(set-common 'kana-text 2084040 "すれば" :null)
(set-common 'kana-text 2036080 "うつ" :null)
(set-common 'kana-text 1922760 "という" :null)
(set-common 'kana-text 1632520 "ふん" :null)
(set-common 'kana-text 1631750 "がる" :null)
(set-common 'kana-text 1394680 "そういう" :null)
(set-common 'kana-text 1208840 "かつ" :null)
(set-common 'kana-text 1011430 "べき" :null)
(set-common 'kana-text 1009610 "にも" :null)
(set-common 'kana-text 1008340 "である" :null)
(set-common 'kana-text 1007960 "ちんちん" :null)
(set-common 'kana-text 1301230 "さんなん" :null)
(set-common 'kanji-text 1311010 "氏" 20)
(set-common 'kana-text 1311010 "うじ" 20)
(set-common 'kanji-text 2101130 "氏" 21)
(set-common 'kana-text 1155180 "いない" 10)
(set-common 'kanji-text 1609450 "思いきって" 0)
(set-common 'kanji-text 1309320 "思いきる" 0)
(set-common 'kana-text 1312880 "メス" 15)
(set-common 'kana-text 1312880 "めす" :null)
(set-common 'kana-text 2061540 "ぶっちゃける" 0)
(set-common 'kana-text 2034520 "ですら" 0)
(set-common 'kana-text 1566210 "いずれ" 9)
(delete-sense-prop 2021030 "misc" "uk") ;; 摂る(とる)
(delete-sense-prop 1586730 "misc" "uk") ;; 粗 (あら)
(delete-sense-prop 1441400 "misc" "uk") ;; 点く (つく)
(add-sense-prop 1569590 0 "misc" "uk") ;; 痙攣 けいれん
(add-sense-prop 1590540 0 "misc" "uk") ;; 仮名 かな
(add-sense-prop 1430200 0 "misc" "uk") ;; いただき
(set-primary-nokanji 1374550 nil) ;; すごい
(set-primary-nokanji 1591900 nil) ;; きれい
(set-primary-nokanji 1000230 nil) ;; あかん
(set-primary-nokanji 1517810 nil) ;; もやし
(set-primary-nokanji 1585410 nil) ;; まま
(add-reading 1029150 "えっち")
(add-reading 1363740 "マネ")
(set-common 'kana-text 1363740 "マネ" 9)
(set-common 'kanji-text 1000420 "彼の" :null)
(set-common 'kanji-text 2219590 "元" 10)
(set-common 'kana-text 2219590 "もと" 10)
(set-common 'kana-text 1394760 "さほど" 0)
(set-common 'kana-text 1529560 "なし" 10)
(set-common 'kana-text 1436830 "ていない" :null)
(set-common 'kana-text 1057580 "さぼる" 0)
(set-common 'kanji-text 1402420 "走り" :null)
(set-common 'kana-text 1402420 "はしり" :null)
(set-common 'kana-text 1209540 "かる" :null)
(set-common 'kana-text 1244840 "かる" :null)
(set-common 'kana-text 1280640 "こうは" 0)
(set-common 'kana-text 1158960 "いほう" 0)
(delete-sense-prop 2122310 "pos" "prt") ;; え
)
(defun add-errata-jan18 ()
(set-common 'kanji-text 2067770 "等" :null)
(set-common 'kana-text 2067770 "ら" :null)
(set-common 'kanji-text 1242230 "近よる" 38)
(set-common 'kanji-text 1315120 "字" 0)
(set-common 'kana-text 1315120 "あざ" 0)
(set-common 'kanji-text 1315130 "字" 5)
(set-common 'kana-text 1315130 "じ" 0)
(set-common 'kana-text 1005530 "しっくり" 0)
(set-common 'kana-text 1554850 "りきむ" :null)
(set-common 'kana-text 2812650 "ゲー" 0)
(set-common 'kana-text 2083340 "やろう" 0)
(set-common 'kana-text 2083340 "やろ" 0)
(set-common 'kana-text 1008730 "とろ" :null)
(set-common 'kana-text 1457840 "ないかい" :null)
(set-common 'kana-text 2829697 "いかん" 0)
(set-common 'kana-text 2157330 "おじゃま" 9)
(set-common 'kana-text 1199800 "かいらん" :null)
(set-common 'kana-text 2719580 "いらん" 0)
(set-common 'kana-text 1808040 "めちゃ" 0)
(set-common 'kana-text 1277450 "すき" 9)
(set-common 'kana-text 1006460 "ズレる" 0)
(set-common 'kanji-text 1522290 "本会議" 0)
(set-common 'kana-text 1522290 "ほんかいぎ" 0)
(set-common 'kana-text 1220570 "きたい" 10)
(set-common 'kana-text 1221020 "きたい" 11)
(set-common 'kana-text 2083990 "ならん" 0)
(set-common 'kanji-text 2518850 "切れ" 0)
(set-common 'kanji-text 1221900 "基地外" 0)
(set-common 'kana-text 1379380 "せいと" 10)
(set-common 'kanji-text 1203280 "外に" :null)
(set-common 'kanji-text 1383690 "後継ぎ" 0)
(set-common 'kana-text 2083600 "すまん" 0)
(add-reading 1384840 "キレ" :common 0)
(delete-sense-prop 1303400 "misc" "uk") ;; 撒く/まく
(delete-sense-prop 1434020 "misc" "uk") ;; 吊る/つる
(delete-sense-prop 1196520 "misc" "uk") ;; かすむ
(delete-sense-prop 1414190 "misc" "uk") ;; 大人しい
(add-sense-prop 1188380 0 "misc" "uk") ;; なんでもかんでも
(add-sense-prop 1258330 0 "misc" "uk") ;; いぬ
(add-sense-prop 2217330 0 "misc" "uk") ;; わい
(set-primary-nokanji 1258330 nil) ;; いぬ
(set-primary-nokanji 1588930 nil) ;; おかず
(add-sense-prop 1445160 0 "pos" "ctr") ;; 度
)
(defun add-errata-mar18 ()
(set-primary-nokanji 1565440 nil)
(set-common 'kana-text 1207610 "かける" 0)
(set-common 'kanji-text 1236100 "強いる" :null)
(set-common 'kana-text 1236100 "しいる" :null)
(set-common 'kana-text 1451750 "おんなじ" 0)
(set-common 'kanji-text 2068330 "事故る" 0)
(set-common 'kana-text 1579260 "きのう" 2)
(set-common 'kanji-text 2644980 "柔らかさ" 0)
(set-common 'kana-text 2644980 "やわらかさ" 0)
(set-common 'kana-text 2083610 "ベタ" 0)
(set-common 'kana-text 2083610 "べた" 0)
(set-common 'kana-text 1119610 "ベタ" :null)
(set-common 'kana-text 1004840 "コロコロ" 0)
(set-common 'kana-text 1257040 "ケンカ" 0)
(set-common 'kana-text 1633840 "ごとき" 0)
(add-sense-prop 1238460 0 "misc" "uk") ;; そば
(delete-sense-prop 1896380 "misc" "uk") ;; 出
(delete-sense-prop 1157000 "misc" "uk") ;; 易しい
(delete-sense-prop 1576360 "misc" "uk") ;; 逸れる
(add-sense-prop 1468900 0 "pos" "ctr") ;; 年生
(add-sense-prop 1241380 0 "pos" "ctr") ;; 斤
(add-sense-prop 1241380 1 "pos" "ctr")
;;; add sense for な
(add-new-sense* 2029110 "prt" "indicates な-adjective")
)
(defun add-errata-aug18 ()
(set-common 'kana-text 1593870 "さらう" 0)
(set-common 'kana-text 2141690 "ふざけんな" 0)
(set-common 'kana-text 1214770 "かん" :null)
(set-common 'kanji-text 1214770 "観" :null)
(set-common 'kanji-text 2082780 "意味深" 0)
(set-common 'kana-text 2209180 "とて" 0)
(set-common 'kana-text 1574640 "ロバ" 0)
(add-reading 2722640 "オケ")
(add-primary-nokanji 2722640 "オケ")
(set-common 'kana-text 2722640 "オケ" 0)
(add-sense-prop 2722640 0 "misc" "uk")
(add-sense-prop 1527140 0 "misc" "uk")
(add-sense-prop 1208870 0 "misc" "uk") ;; かなう
(delete-sense-prop 1598660 "misc" "uk") ;; とかす
)
(defun add-errata-jan19 ()
(set-common 'kanji-text 2017470 "塗れ" 0)
(set-common 'kana-text 2722660 "すげぇ" 0)
(add-sense-prop 2756830 0 "misc" "uk")
(delete-sense-prop 1604890 "misc" "uk") ;; 目
(add-reading 1008370 "デカい" :common 0)
(add-conj-reading 1008370 "デカい")
(add-reading 1572760 "クドい")
(add-conj-reading 1572760 "クドい")
(add-reading 1003620 "ギュっと")
(delete-reading 2424520 "去る者は追わず、来たる者は拒まず")
(delete-reading 2570040 "朝焼けは雨、夕焼けは晴れ")
(delete-reading 2833961 "梅は食うとも核食うな、中に天神寝てござる")
(delete-reading 2834318 "二人は伴侶、三人は仲間割れ")
(delete-reading 2834363 "墨は餓鬼に磨らせ、筆は鬼に持たせよ")
(set-primary-nokanji 1631830 nil) ;; くせに
(delete-sense-prop 1270350 "misc" "arch") ;; ござる
)
(defun add-errata-apr19 ()
(set-common 'kanji-text 1538750 "癒やす" 0)
(set-common 'kanji-text 1538750 "癒す" 0)
(set-common 'kana-text 1538750 "いやす" 0)
(set-common 'kana-text 2147610 "いなくなる" 0)
(set-common 'kana-text 1346290 "マス" 37)
(add-sense-prop 1346290 2 "misc" "uk")
(set-primary-nokanji 1346290 t)
(set-primary-nokanji 1409110 nil)
(delete-reading 2081610 "スレ違") ;; this was added by mistake in the previous errata
(set-primary-nokanji 2081610 nil) ;; this was added by mistake in the previous errata
(add-sense-prop 1615340 0 "misc" "uk")
(add-sense-prop 1658480 0 "pos" "ctr")
)
(defun add-errata-jan20 ()
(add-reading 2839843 "うえをしたへ")
(delete-reading 2839843 "うえをしたえ")
(add-reading 1930050 "バラす")
(add-conj-reading 1930050 "バラす")
(add-reading 1593170 "コケる")
(add-conj-reading 1593170 "コケる")
(add-sense-prop 1565100 0 "misc" "uk")
(delete-sense-prop 1632980 "misc" "uk")
(delete-sense-prop 1715710 "misc" "uk")
(set-common 'kana-text 1715710 "みたところ" :null)
(set-common 'kana-text 2841254 "からって" :null)
(set-common 'kana-text 2028950 "とは" :null)
(set-common 'kanji-text 1292400 "再開" 13)
(set-common 'kana-text 1292400 "さいかい" 13)
(set-common 'kana-text 1306200 "しよう" 10)
(set-common 'kana-text 2056930 "つまらなさそう" 0)
(set-common 'kanji-text 1164710 "一段落" :null)
(set-common 'kana-text 1570220 "すくむ" 0)
(set-common 'kana-text 1352130 "うえ" 1)
(set-common 'kana-text 1502390 "もん" 0)
(set-common 'kana-text 2780660 "もん" 0)
(set-common 'kana-text 2653620 "がち" 0)
(set-common 'kana-text 2653620 "ガチ" 0)
(set-common 'kana-text 1135480 "モノ" :null)
(set-common 'kana-text 1003000 "カラカラ" 0)
(set-primary-nokanji 1495000 nil) ;; まずい
;; (delete-sense-prop 2036080 "misc" "uk") ;; 鬱
(add-sense-prop 2510160 0 "misc" "obsc") ;; 鬱ぐ
(add-sense-prop 1468900 0 "pos" "ctr") ;; 年生
(add-sense-prop 1469050 0 "pos" "ctr") ;; 年度
(add-sense-prop 1469050 1 "pos" "ctr") ;; 年度
(add-sense-prop 1469050 2 "pos" "ctr")
(add-sense-prop 1284270 0 "pos" "ctr") ;; 号車
(delete-sense-prop 1245280 "pos" "adj-no") ;; 空 から (to make it even with そら)
(delete-sense-prop 1392570 "pos" "adj-no") ;; 前 ぜん
(add-sense-prop 1429740 0 "pos" "suf") ;; 長
(add-sense-prop 1429740 1 "pos" "n")
(delete-sense-prop 2647210 "pos" "suf")
)
(defun add-errata-apr20 ()
(set-common 'kana-text 1225940 "アリ" 0)
(set-common 'kana-text 1568080 "ふくろう" 0)
(set-common 'kana-text 1025450 "ウイルス" :null)
(set-common 'kana-text 1025450 "ウィルス" :null)
(set-common 'kana-text 1004320 "こうゆう" 0)
(set-common 'kana-text 1580290 "おとめ" 0)
(add-sense-prop 1219510 0 "misc" "uk")
(add-sense-prop 1616370 0 "misc" "uk")
(add-new-sense* 1315920 "ctr" "hours (period of)")
(add-sense-prop 1220540 0 "pos" "ctr")
(add-sense-prop 1220540 3 "pos" "ctr")
(add-sense-prop 1220540 4 "pos" "ctr")
(add-sense-prop 1220540 5 "pos" "ctr")
(add-sense-prop 1220540 6 "pos" "ctr")
(add-sense-prop 2842087 0 "pos" "ctr") ;; パー
(set-common 'kana-text 2842087 "パー" 0)
(add-sense-prop 1956530 1 "pos" "n")
)
(defun add-errata-jul20 ()
(set-common 'kana-text 2101130 "し" :null)
(set-common 'kanji-text 1982860 "代" 0)
(set-common 'kana-text 1367020 "ひとけ" 0)
(set-common 'kana-text 1002190 "おしり" 0)
(set-common 'kana-text 2085020 "もどき" 0)
(set-primary-nokanji 1756600 nil) ;; がんもどき
(add-reading 2217330 "ワイ")
(add-primary-nokanji 2217330 "ワイ")
(add-sense-prop 2217330 0 "misc" "uk")
(delete-sense-prop 2217330 "misc" "arch")
(add-reading 1103270 "ぱんつ")
(add-sense-prop 1586290 0 "misc" "uk") ;; あげく
(add-sense-prop 1257260 0 "misc" "uk") ;; いやがらせ
(rearrange-readings-conj 1980880 'kanji-text "かけ直")
)
(defun add-errata-jan21 ()
(set-common 'kana-text 2124820 "コロナウイルス" :null)
(set-common 'kana-text 2846738 "なん" :null)
(set-common 'kana-text 2083720 "っぽい" :null)
(set-common 'kanji-text 1012980 "遣る" :null)
(add-sense-prop 1411570 0 "pos" "vs") ;; 変わり映え
(add-sense-prop 1613860 0 "pos" "ctr") ;; 回戦
(add-sense-prop 1613860 1 "pos" "ctr")
(add-sense-prop 2679820 0 "misc" "uk") ;; しっぽく
(delete-sense-prop 1426680 "misc" "uk") ;; 虫
(add-sense-prop 1590390 0 "misc" "uk") ;; かたどる
(delete-sense-prop 1215240 "pos" "ctr")
(add-sense-prop 2145410 0 "pos" "ctr") ;; 間
(replace-reading 2847494 "いきはよいといかえりはこわい" "いきはよいよいかえりはこわい")
)
(defun add-errata-may21 ()
(add-reading 1089590 "どんまい")
(set-common 'kana-text 2848303 "てか" 0)
(set-common 'kanji-text 1979920 "貴方" :null)
(delete-sense-prop 1547720 "misc" "uk") ;; 来る
(delete-sense-prop 1495770 "misc" "uk") ;; 付ける
(delete-sense-prop 2611890 "misc" "uk") ;; 蒔く
)
(defun add-errata-jan22 ()
(add-reading 1566420 "ハメる")
(add-conj-reading 1566420 "ハメる")
;; these words had no kana in jmdict
(add-reading 1161240 "いっかねん")
(add-reading 2209300 "たへる")
(add-conj-reading 2209300 "たへる") ;; this doesn't actually work because there are no existing conjugations but whatever
(set-common 'kana-text 2008650 "そうした" :null)
(add-sense-prop 1188270 0 "pos" "n") ;; 何か
(delete-sense-prop 1188270 "pos" "pn")
(delete-sense-prop 1240530 "pos" "ctr") ;; 玉
(add-sense-prop 1247260 0 "pos" "n-suf") ;; 君 くん
(set-common 'kana-text 1001840 "おにいちゃん" 0)
(set-common 'kana-text 1806840 "がいそう" :null)
(set-common 'kana-text 1639750 "こだから" :null)
)
(defun add-errata-counters ()
(delete-reading 1299960 "さんかい")
(mapc 'set-reading (select-dao 'kanji-text (:= 'seq 1299960)))
(add-reading 2081610 "タテ")
(add-sense-prop 1427420 0 "pos" "ctr") ;; 丁目
(add-sense-prop 1397450 0 "pos" "ctr") ;; 組
(add-sense-prop 1397450 1 "pos" "ctr") ;; 組
(add-sense-prop 1351270 0 "pos" "ctr") ;; 章
(add-sense-prop 1351270 1 "pos" "n") ;; 章
(add-sense-prop 1490430 0 "pos" "ctr") ;; 秒
(add-sense-prop 1490430 1 "pos" "ctr") ;; 秒
(add-sense-prop 2020680 0 "pos" "ctr") ;; 時
(add-sense-prop 1502840 0 "pos" "ctr") ;; 分
(add-sense-prop 1502840 1 "pos" "ctr") ;; 分
(add-sense-prop 1373990 0 "pos" "ctr") ;; 世紀
(add-sense-prop 1281690 0 "pos" "ctr") ;; 行
(add-sense-prop 1281690 1 "pos" "n")
(add-sense-prop 1042610 1 "pos" "ctr") ;; キロ
(add-sense-prop 1042610 2 "pos" "ctr")
(add-sense-prop 1100610 0 "pos" "ctr") ;; パーセント
(add-new-sense* 1583470 "ctr" "counter for dishes") ;; 品(しな)
(add-sense-prop 1411070 0 "pos" "ctr") ;; 袋
(add-sense-prop 1411070 1 "pos" "n")
(add-sense-prop 1328810 0 "pos" "ctr") ;; 種
(add-sense-prop 1284220 0 "pos" "ctr") ;; 号
(add-sense-prop 1284220 1 "pos" "n")
(add-sense-prop 1284220 1 "pos" "n-suf")
(add-sense-prop 1482360 0 "pos" "ctr") ;; 番地
(add-sense-prop 2022640 0 "pos" "ctr") ;; 番
(add-sense-prop 1175570 0 "pos" "ctr") ;; 円
(add-sense-prop 1175570 1 "pos" "n")
(add-sense-prop 1315130 0 "pos" "ctr") ;; 字
(add-sense-prop 1315130 1 "pos" "n")
(add-sense-prop 1199640 0 "pos" "ctr") ;; 回転
(add-sense-prop 1047880 0 "pos" "ctr") ;; ケース
(add-sense-prop 1047880 1 "pos" "n")
(add-sense-prop 1244080 0 "pos" "ctr") ;; 区
(add-sense-prop 1244080 1 "pos" "ctr") ;; 区
(add-sense-prop 1239700 0 "pos" "ctr") ;; 曲
(add-sense-prop 1294940 0 "pos" "ctr") ;; 才 歳
(add-sense-prop 1294940 1 "pos" "suf")
(add-sense-prop 1575510 0 "pos" "ctr") ;; コマ
(add-sense-prop 1575510 1 "pos" "n")