주기 회기 검증 격리 보강
This commit is contained in:
parent
9a7dd98cb6
commit
4cd354881f
10 changed files with 181 additions and 69 deletions
|
|
@ -25,7 +25,9 @@ function replacePlaceholderWithNaturalParticle(
|
|||
label: string,
|
||||
) {
|
||||
const batchim = hasHangulBatchim(label);
|
||||
let next = text;
|
||||
// `이고`를 단일 조사 `이`보다 먼저 처리하지 않으면
|
||||
// `[NAME]이고`가 `익명 내담자가고`로 깨진다.
|
||||
let next = text.split(`${placeholder}이고`).join(`${label}이고`);
|
||||
for (const [variants, particle] of [
|
||||
[["으로", "로"], batchim ? "으로" : "로"],
|
||||
[["은", "는"], batchim ? "은" : "는"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue