Skip to content

Commit

Permalink
feat: "이라/라" 케이스 추가 (#198)
Browse files Browse the repository at this point in the history
* feat: 이라/라 케이스 추가

* Create chilly-cameras-lie.md

---------

Co-authored-by: 박찬혁 <[email protected]>
  • Loading branch information
linenumbertwo and okinawaa committed Jul 30, 2024
1 parent b6cde8e commit e6142b0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilly-cameras-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-hangul": patch
---

feat: "이라/라" 케이스 추가
4 changes: 4 additions & 0 deletions src/josa.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ describe('Hangul', () => {
expect(josa('고기', '이랑/랑')).toBe('고기랑');
expect(josa('과일', '이랑/랑')).toBe('과일이랑');
});
it('주제의 보조사', () => {
expect(josa('의사', '이라/라')).toBe('의사라');
expect(josa('선생님', '이라/라')).toBe('선생님이라');
});
it('서술격조사와 종결어미', () => {
expect(josa('사과', '이에요/예요')).toBe('사과예요');
expect(josa('책', '이에요/예요')).toBe('책이에요');
Expand Down
3 changes: 2 additions & 1 deletion src/josa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ type JosaOption =
| '이에요/예요'
| '으로서/로서'
| '으로써/로써'
| '으로부터/로부터';
| '으로부터/로부터'
| '이라/라';

const 로_조사: JosaOption[] = ['으로/로', '으로서/로서', '으로써/로써', '으로부터/로부터'];

Expand Down

0 comments on commit e6142b0

Please sign in to comment.