Skip to content

Commit

Permalink
fix: exclude ssangjaums from composite jongseongs
Browse files Browse the repository at this point in the history
  • Loading branch information
WieeRd committed Apr 10, 2024
1 parent 95f6430 commit 6a82c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ricecake/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def incremental_pattern(c: str, /) -> str:

# 2.1.1. Composite Jongseong
# "읽" -> "(?:읽|일[ㄱ가-깋])"
if second:
if second and first != second:
jong_removed = set_jongseong(c, first) # "일"
cho_search = choseong_pattern(to_compat_jamo(second)) # "[ㄱ가-깋]"
return f"(?:{c}|{jong_removed}{cho_search})"
Expand Down

0 comments on commit 6a82c77

Please sign in to comment.