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

[Feature]: 문장의 각 단어 중 첫 문자만 뽑는 함수 #128

Closed
ienrum opened this issue Jun 23, 2024 · 2 comments
Closed

[Feature]: 문장의 각 단어 중 첫 문자만 뽑는 함수 #128

ienrum opened this issue Jun 23, 2024 · 2 comments

Comments

@ienrum
Copy link

ienrum commented Jun 23, 2024

Description

문장의 각 단어중 첫 문자만 뽑는함수

Possible Solution

/**
 * 한글 문장 단어중 첫 문자만 뽑은 리스트를 반환합니다.
 * @param hangulText 변환하고자 하는 한글 텍스트.
 * @returns 첫 문자만 뽑은 리스트
 */
function splitFirstCharacter(hangulText: string): string[] {
    return ['치','맥']; // "치킨과 맥주"
}

etc.

예상 사용 사례

줄임말 검사, 줄임말 생성, 줄임말 유사도, 등에 많이 쓰일것 같습니다.

@KNU-K
Copy link
Contributor

KNU-K commented Jun 25, 2024

#133

pr 생성했습니다.

okinawaa added a commit that referenced this issue Jun 29, 2024
* feat : 문장의 각 단어 중 첫 문자만 뽑는 함수추가

* test 및 함수 추가

* add : 한글 문장인지 여부 판별 함수 추가

* fix : 한글 문장인지 여부 판별 기저 및 오류 추가 / arg 이름 변경

test 추가

* fix: src/_internal/hangul.ts

Co-authored-by: 박찬혁 <[email protected]>

* fix : rename function

getFirstHangulLetters -> getHangulAcronym

* fix : rename function

export function isHangulOnly로 변경

* fix : lint error

* fix : index에 추가

* chore : doc 추가

* fix : 문서화 한글 영어 바뀐거 바로 변경

* fix : isHangul로 대체 #136 으로

* chore : doc수정

* Update docs/src/pages/docs/api/getHangulAcronym.en.mdx

Co-authored-by: 박찬혁 <[email protected]>

* fix : Update hangul.ts

안쓰는 메소드 삭제

* Update getHangulAcronym.ko.mdx

* Update getHangulAcronym.en.mdx

* Update src/getHangulAcronym.ts

Co-authored-by: 박찬혁 <[email protected]>

* Update src/getHangulAcronym.ts

Co-authored-by: 박찬혁 <[email protected]>

* Update getHangulAcronym.ts

* Update getHangulAcronym.spec.ts

* Create fair-brooms-drive.md

---------

Co-authored-by: 박찬혁 <[email protected]>
@okinawaa
Copy link
Member

okinawaa commented Jul 3, 2024

감사합니다.

@okinawaa okinawaa closed this as completed Jul 3, 2024
seungrodotlee pushed a commit to seungrodotlee/es-hangul that referenced this issue Jul 6, 2024
* feat : 문장의 각 단어 중 첫 문자만 뽑는 함수추가

* test 및 함수 추가

* add : 한글 문장인지 여부 판별 함수 추가

* fix : 한글 문장인지 여부 판별 기저 및 오류 추가 / arg 이름 변경

test 추가

* fix: src/_internal/hangul.ts

Co-authored-by: 박찬혁 <[email protected]>

* fix : rename function

getFirstHangulLetters -> getHangulAcronym

* fix : rename function

export function isHangulOnly로 변경

* fix : lint error

* fix : index에 추가

* chore : doc 추가

* fix : 문서화 한글 영어 바뀐거 바로 변경

* fix : isHangul로 대체 toss#136 으로

* chore : doc수정

* Update docs/src/pages/docs/api/getHangulAcronym.en.mdx

Co-authored-by: 박찬혁 <[email protected]>

* fix : Update hangul.ts

안쓰는 메소드 삭제

* Update getHangulAcronym.ko.mdx

* Update getHangulAcronym.en.mdx

* Update src/getHangulAcronym.ts

Co-authored-by: 박찬혁 <[email protected]>

* Update src/getHangulAcronym.ts

Co-authored-by: 박찬혁 <[email protected]>

* Update getHangulAcronym.ts

* Update getHangulAcronym.spec.ts

* Create fair-brooms-drive.md

---------

Co-authored-by: 박찬혁 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants