Skip to content

Commit da715e4

Browse files
bbungjinokinawaa
andauthored
fix: '이에요/예요' 조사에서 '이'로 끝나는 단어에 대한 불필요한 예외 제거 (#352)
* fix: '이에요/예요' 조사에서 '이'로 끝나는 단어에 대한 불필요한 예외 제거 * Create good-fireants-tease.md --------- Co-authored-by: 박찬혁 <[email protected]>
1 parent 73d94ce commit da715e4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.changeset/good-fireants-tease.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"es-hangul": patch
3+
---
4+
5+
fix: '이에요/예요' 조사에서 '이'로 끝나는 단어에 대한 불필요한 예외 제거

src/core/josa/josa.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,5 @@ function josaPicker<T extends JosaOption>(word: string, josa: T): ExtractJosaOpt
4747
index = index === 0 ? 1 : 0;
4848
}
4949

50-
const isEndsWith이 = word[word.length - 1] === '이';
51-
52-
if (josa === '이에요/예요' && isEndsWith이) {
53-
index = 1;
54-
}
55-
5650
return josa.split('/')[index] as ExtractJosaOption<T>;
5751
}

0 commit comments

Comments
 (0)