add hiragana dictionary

This commit is contained in:
Tokuhiro Matsuno
2020-09-09 23:41:47 +09:00
parent 4c3757940b
commit 7ee0e6aa1a
10 changed files with 69 additions and 35 deletions

View File

@ -19,7 +19,8 @@ from datetime import date
import re
TRAILING_CONSONANT_PATTERN = re.compile(r'^(.*?)([qwrtypsdfghjklzxcvbnm]+)$')
# 子音だが、N は NN だと「ん」になるので処理しない。
TRAILING_CONSONANT_PATTERN = re.compile(r'^(.*?)([qwrtypsdfghjklzxcvbm]+)$')
class Candidate: