Open tarao opened 2 years ago
Maybe this is intended behavior.
There is a guard for checking correct radicals:
https://github.com/motemen/kanjile/blob/6bbc5ba796f9086b34c836c3c87b835a94d5b9ad/src/lib/statuses.ts#L96-L98
but there is no guard for checking present radicals:
https://github.com/motemen/kanjile/blob/6bbc5ba796f9086b34c836c3c87b835a94d5b9ad/src/lib/statuses.ts#L119-L121
This causes the matcher, for example, to give hint YBBR not YRBR for 一両日中 against 唯一無二. (両 and 無 both have radical 一 but 一 in 無 is consumed by the first 一 in 一両日中, which has already been consumed 一 in 唯一無二.)
YBBR
YRBR
一両日中
唯一無二
両
無
一
Maybe this is intended behavior.
There is a guard for checking correct radicals:
https://github.com/motemen/kanjile/blob/6bbc5ba796f9086b34c836c3c87b835a94d5b9ad/src/lib/statuses.ts#L96-L98
but there is no guard for checking present radicals:
https://github.com/motemen/kanjile/blob/6bbc5ba796f9086b34c836c3c87b835a94d5b9ad/src/lib/statuses.ts#L119-L121
This causes the matcher, for example, to give hint
YBBR
notYRBR
for一両日中
against唯一無二
. (両
and無
both have radical一
but一
in無
is consumed by the first一
in一両日中
, which has already been consumed一
in唯一無二
.)