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]: 한국어를 입력하면 로마자로 변환해주는 함수 #33

Open
okinawaa opened this issue Apr 12, 2024 · 3 comments · May be fixed by #115
Open

[Feature]: 한국어를 입력하면 로마자로 변환해주는 함수 #33

okinawaa opened this issue Apr 12, 2024 · 3 comments · May be fixed by #115
Assignees

Comments

@okinawaa
Copy link
Member

Description

한국어 문장 / 단어를 주입하면, 로마자로 변환한 string을 반환해주는 기능을 가진 함수

Possible Solution

/**
 * 한글 텍스트를 로마자로 변환합니다.
 * @param hangulText 변환하고자 하는 한글 텍스트.
 * @returns 로마자로 변환된 텍스트.
 */
function convertToRoman(hangulText: string): string {
    return "로마자_텍스트"; 
}

test cases

    test('should convert simple Hangul to Roman', () => {
        expect(convertToRoman('안녕하세요')).toEqual('annyeonghaseyo');
    });

    test('should handle empty input', () => {
        expect(convertToRoman('')).toEqual('');
    });

    test('should process Hangul with special characters', () => {
        expect(convertToRoman('한국어!')).toEqual('hangugeo!');
    });

etc.

예상 사용 사례

  • 언어 학습 앱: 한국어를 배우는 외국인 학습자들이 한글을 로마자로 쉽게 변환하여 발음을 익힐 수 있도록 도와줍니다.
  • 여행자를 위한 통역 앱: 한국을 방문하는 여행자들이 한글로 쓰여진 간판이나 메뉴를 로마자로 변환하여 읽을 수 있게 해줍니다.
  • 문서 번역 및 편집: 공식 문서나 학술 자료에서 한글 이름이나 용어를 국제적인 문맥에 맞게 로마자로 표기할 때 사용됩니다.
  • SNS 및 디지털 커뮤니케이션: 한글을 모르는 사용자들과 소통할 때 메시지를 로마자로 변환하여 보다 쉽게 소통할 수 있도록 합니다.

래퍼런스

@po4tion
Copy link
Contributor

po4tion commented Jun 1, 2024

안녕하세요 @okinawaa님! 제가 이 이슈에 대해 많은 관심을 갖고 있는데요. 제가 해당 기능 개발해도 될까요?

@okinawaa
Copy link
Member Author

okinawaa commented Jun 1, 2024

@po4tion 너무 좋습니다!
여기에 간략하게 개발하려는것 Draft나, interface 정도 작성해주신 뒤, 실제 구현해주셔도 좋을 것 같아요!

@po4tion
Copy link
Contributor

po4tion commented Jun 1, 2024

@okinawaa님 먼저, 한국어 어문규범의 표준발음법에서 제공하는 '받침의 발음'과 '음의 동화'를 입력받은 한글에 적용하여 표준 발음법으로 변경합니다. 그리고 변경된(전자법과 전음법을 지킨 표준 발음법) 한글을 '국어의 로마자 표기법'에 따라 로마자로 변경하려고 합니다. 실질 형태소와 형식 형태소의 구분은 외부의 도움없이(형태소 분석기 필요)는 사실상 불가능하여 해당 형태소들을 구분하는 한글 받침은 100% 못하더라도 최대한 적용해보려고 합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants