Skip to content

Commit

Permalink
make 鬱ぐ not clash with 鬱
Browse files Browse the repository at this point in the history
  • Loading branch information
tshatrov committed Jan 2, 2020
1 parent 5936763 commit b710519
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dict-errata.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,8 @@
(set-common 'kana-text 2841254 "からって" :null)
(set-common 'kana-text 2028950 "とは" :null)

;; (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")
Expand Down
2 changes: 1 addition & 1 deletion dict.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@
(when long-p
(setf score (max len score)))
(when kanji-p
(setf score (max 5 score))
(setf score (max (if is-arch 3 5) score))
(when (and long-p (or (> n-kanji 1) (> len 4)))
(incf score 2)))
(when ctr-mode
Expand Down
1 change: 1 addition & 0 deletions tests.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@
(assert-segment "ことしは新成人14人のうち8人が避難先などから村の村民会館に集まりました"
"ことし" "" "新成人" "14人" "" "うち" "8人" "" "避難" "" "など" "から"
"" "" "村民" "会館" "" "集まりました")
(assert-segment "鬱が悪化する" "" "" "悪化する")
)

(define-test json-consistency-test
Expand Down

0 comments on commit b710519

Please sign in to comment.