Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2 #189

Merged
merged 22 commits into from
Aug 5, 2024
Merged

v2 #189

Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8a97fff
feat: 문자열에서 한글을 추출해주는 extractHangul 함수를 제거합니다 (#185)
okinawaa Jul 14, 2024
6456f79
feat: disassembleHangul, disassemble, disassembleHangulToGroup 함수에서 h…
okinawaa Jul 14, 2024
642a3e4
remove hangulIncludes (#188)
okinawaa Jul 14, 2024
9f8dd1b
feat: 한글의 두음을 반환해주는 acronymizeHangul 함수를 제거합니다. (#180)
okinawaa Jul 14, 2024
a5ff8d2
feat: getChoseng을 utils에서 별도 함수로 분리합니다. (#192)
okinawaa Jul 23, 2024
7ed39ac
feat: `canBeChoseong`, `canBeJungseong`, `canBeJongseong` 을 utils에서 별…
okinawaa Jul 23, 2024
7a33c1e
feat: `hasBatchim` 을 utils에서 별도 함수로 분리합니다. (#195)
okinawaa Jul 23, 2024
cbf3e4a
feat: choseongIncludes함수를 제거합니다. (#197)
okinawaa Jul 23, 2024
88088fc
docs: API 메뉴트리에서 함수명이 카멜케이스로 나오도록합니다 (#215)
okinawaa Aug 4, 2024
2592ca4
susa 의 hasProprty를 utils가 아닌 internal 폴더에서 가져옵니다
okinawaa Aug 4, 2024
01843b8
remove curriedCombineHangulCharacter in index.ts
okinawaa Aug 4, 2024
82e03c3
fix: 일관된 한글 이름 규칙 설정 (to v2) (#204)
Collection50 Aug 5, 2024
8254070
chore: add co-authors
okinawaa Aug 5, 2024
12c9aca
Merge branch 'main' into v2
manudeli Aug 5, 2024
ee46e7b
remove choseongIncludes
okinawaa Aug 5, 2024
6bcd40e
Update README.md
okinawaa Aug 5, 2024
3c5299d
remove removeHangulCharacter
okinawaa Aug 5, 2024
c62c1db
change hasbatchim interface
okinawaa Aug 5, 2024
bfaa568
add jsdoc in hasBatchim
okinawaa Aug 5, 2024
d0599d2
Update docs/src/pages/docs/api/getChoseong.en.mdx
okinawaa Aug 5, 2024
d3d27e8
Update docs/src/pages/docs/api/disassembleToGroups.en.md
okinawaa Aug 5, 2024
4c3e9f9
add
okinawaa Aug 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cyan-tigers-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-hangul": major
---

feat: 문자열에서 한글을 추출해주는 extractHangul 함수를 제거합니다
5 changes: 5 additions & 0 deletions .changeset/honest-roses-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-hangul": major
---

feat: hasBatchim 을 utils에서 별도 함수로 분리합니다.
5 changes: 5 additions & 0 deletions .changeset/kind-birds-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-hangul": major
---

fix: 일관된 한글 이름 규칙 설정 함수명에서 꼭 필요하지 않다면 hangul이라는 워딩을 제거합니다
5 changes: 5 additions & 0 deletions .changeset/late-beers-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-hangul": major
---

feat: disassembleHangul, disassemble, disassembleHangulToGroup 함수에서 hangul이라는 글자를 제거합니다
5 changes: 5 additions & 0 deletions .changeset/mighty-paws-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-hangul": major
---

feat: choseongIncludes함수를 제거합니다.
5 changes: 5 additions & 0 deletions .changeset/pretty-apes-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-hangul": major
---

canBeChoseong, canBeJungseong, canBeJongseong 을 utils에서 별도 함수로 분리합니다.
5 changes: 5 additions & 0 deletions .changeset/smooth-rings-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-hangul": major
---

hangulIncludes 함수를 제거합니다
5 changes: 5 additions & 0 deletions .changeset/weak-walls-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-hangul": major
---

feat: 한글의 두음을 반환해주는 acronymizeHangul 함수를 제거합니다.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ import hangul from 'es-hangul' // hangul default export에 묶어서도 제공
hangul.getSimilarity(...)
hangul.disassemble(...)
hangul.josa(...)

```
8 changes: 6 additions & 2 deletions README-en_us.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ es-hangul is a library that makes it easy to handle [Hangul](https://en.wikipedi
You can easily implement tasks related to Hangul, such as initial consonant search and attaching particles(josas).

```tsx
import { choseongIncludes } from 'es-hangul';
import { getChoseong } from 'es-hangul';

const searchWord = '라면';
const userInput = 'ㄹㅁ';

const result = choseongIncludes(searchWord, userInput); // true
const result = getChoseong(searchWord); // ㄹㅁ

if (result === userInput) {
// do something
}
```

```tsx
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@

## 사용 예시

초성 검색, 조사 붙이기와 같은 한글 작업을 간단히 할 수 있습니다.
문자열 초성화 , 조사 붙이기와 같은 한글 작업을 간단히 할 수 있습니다.
okinawaa marked this conversation as resolved.
Show resolved Hide resolved

```tsx
import { choseongIncludes } from 'es-hangul';
import { getChoseong } from 'es-hangul';

const searchWord = '라면';
const userInput = 'ㄹㅁ';

const result = choseongIncludes(searchWord, userInput); // true
const result = getChoseong(searchWord); // ㄹㅁ

if (result === userInput) {
// 일치한다면 if문이 실행
}
```

```tsx
Expand Down
47 changes: 0 additions & 47 deletions docs/src/components/demo/choseong-includes-demo.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions docs/src/pages/docs/api/acronymizeHangul.en.mdx

This file was deleted.

16 changes: 0 additions & 16 deletions docs/src/pages/docs/api/acronymizeHangul.ko.mdx

This file was deleted.

53 changes: 53 additions & 0 deletions docs/src/pages/docs/api/canBe.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: canBe
---

# canBeChoseong

Check if a given character can be a choseong in Korean.

```typescript
function canBeChoseong(character: string): boolean;
```

```typescript
canBeChoseong('ㄱ'); // true
canBeChoseong('ㅃ'); // true
canBeChoseong('ㄱㅅ'); // false
canBeChoseong('ㅏ'); // false
canBeChoseong('가'); // false
```

# canBeJungseong

Check if a given character can be a jungseong in Korean.

```typescript
function canBeJungseong(character: string): boolean;
```

```typescript
canBeJungseong('ㅏ'); // true
canBeJungseong('ㅗㅏ'); // true
canBeJungseong('ㅏㅗ'); // false
canBeJungseong('ㄱ'); // false
canBeJungseong('ㄱㅅ'); // false
canBeJungseong('가'); // false
```

# canBeJongseong

Check if a given character can be a jongseong in Korean.

```typescript
function canBeJongseong(character: string): boolean;
```

```typescript
canBeJongseong('ㄱ'); // true
canBeJongseong('ㄱㅅ'); // true
canBeJongseong('ㅎㄹ'); // false
canBeJongseong('가'); // false
canBeJongseong('ㅏ'); // false
canBeJongseong('ㅗㅏ'); // false
```
53 changes: 53 additions & 0 deletions docs/src/pages/docs/api/canBe.ko.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: canBe
---

# canBeChoseong

인자로 받은 문자가 초성으로 위치할 수 있는 문자인지 검사합니다.

```typescript
function canBeChoseong(character: string): boolean;
```

```typescript
canBeChoseong('ㄱ'); // true
canBeChoseong('ㅃ'); // true
canBeChoseong('ㄱㅅ'); // false
canBeChoseong('ㅏ'); // false
canBeChoseong('가'); // false
```

# canBeJungseong

인자로 받은 문자가 중성으로 위치할 수 있는 문자인지 검사합니다.

```typescript
function canBeJungseong(character: string): boolean;
```

```typescript
canBeJungseong('ㅏ'); // true
canBeJungseong('ㅗㅏ'); // true
canBeJungseong('ㅏㅗ'); // false
canBeJungseong('ㄱ'); // false
canBeJungseong('ㄱㅅ'); // false
canBeJungseong('가'); // false
```

# canBeJongseong

인자로 받은 문자가 종성으로 위치할 수 있는 문자인지 검사합니다.

```typescript
function canBeJongseong(character: string): boolean;
```

```typescript
canBeJongseong('ㄱ'); // true
canBeJongseong('ㄱㅅ'); // true
canBeJongseong('ㅎㄹ'); // false
canBeJongseong('가'); // false
canBeJongseong('ㅏ'); // false
canBeJongseong('ㅗㅏ'); // false
```
35 changes: 0 additions & 35 deletions docs/src/pages/docs/api/choseongIncludes.en.mdx

This file was deleted.

35 changes: 0 additions & 35 deletions docs/src/pages/docs/api/choseongIncludes.ko.mdx

This file was deleted.

35 changes: 0 additions & 35 deletions docs/src/pages/docs/api/chosungIncludes.en.mdx

This file was deleted.

Loading