Skip to content

Commit e8ba54a

Browse files
bactCopilot
andauthored
Update pythainlp/morpheme/word_formation.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 152bcc5 commit e8ba54a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythainlp/morpheme/word_formation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def nighit(w1: str, w2: str) -> str:
4141
consonants_in_w2 = [i for i in list_w2 if i in set(thai_consonants)]
4242
if not consonants_in_w2:
4343
raise ValueError(
44-
f"w2 '{w2}' contains no Thai consonants."
44+
f"w2 {w2!r} contains no Thai consonants."
4545
)
4646
consonant_start = consonants_in_w2[0]
4747
if consonant_start in ["ก", "ช", "ค", "ข", "ง"]:

0 commit comments

Comments
 (0)