Skip to content

A JavaScript library for decomposing Korean strings into consonants and vowels

License

Notifications You must be signed in to change notification settings

hwahyeon/korean-unpacker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

korean-unpacker

  • korean-unpacker는 한글 문자열을 자음과 모음으로 분리하는 (풀어쓰기 해주는) JavaScript 라이브러리입니다.
  • korean-unpacker is a JavaScript library for decomposing Korean strings into consonants and vowels.

Installation

npm install korean-unpacker

Usage

const hangul = require('korean-unpacker');

console.log(hangul.unpack('안녕')); // 'ㅇㅏㄴㄴㅕㅇ'

OR

import hangul from 'korean-unpacker'

console.log(hangul.unpack('안녕')); // 'ㅇㅏㄴㄴㅕㅇ'

쌍자음

console.log(hangul.unpack('까치')); // 'ㄱㄱㅏㅊㅣ'

겹받침

console.log(hangul.unpack('삵')); // 'ㅅㅏㄹㄱ'

겹모음

console.log(hangul.unpack('왜?')); // 'ㅇㅗㅐ?'

API

unpack(string)

  • Parameters
    • string (String): The Korean string to decompose.
  • Returns
    • (String): The decomposed string into consonants and vowels.

License

This project is provided under the MIT License.

About

A JavaScript library for decomposing Korean strings into consonants and vowels

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published