Format and docs

This commit is contained in:
litagin02
2024-02-26 01:05:05 +09:00
parent e7d4218504
commit 36462c8203
7 changed files with 44 additions and 7 deletions

View File

@@ -497,7 +497,10 @@ class ToneSandhi:
# 个做量词
elif (
ge_idx >= 1
and (word[ge_idx - 1].isnumeric() or word[ge_idx - 1] in "几有两半多各整每做是")
and (
word[ge_idx - 1].isnumeric()
or word[ge_idx - 1] in "几有两半多各整每做是"
)
) or word == "":
finals[ge_idx] = finals[ge_idx][:-1] + "5"
else: