Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.69 KB

README-en_us.md

File metadata and controls

49 lines (32 loc) · 1.69 KB

es-hangul logo

es-hangul

한국어 | English

es-hangul is a library that makes it easy to handle Hangul in JavaScript. It provides a modern API that is easy to use. Because it uses ECMAScript Modules, users can download the minimum amount of code when used in a browser environment.

Examples

You can easily implement tasks related to Hangul, such as initial consonant search and attaching particles(josas).

import { chosungIncludes } from 'es-hangul';

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

const result = chosungIncludes(searchWord, userInput); // true
import { josa } from 'es-hangul';

const word1 = '사과';
const sentence1 = josa(word1, '을/를') + ' 먹었습니다.';
console.log(sentence1); // '사과를 먹었습니다.'

const word2 = '바나나';
const sentence2 = josa(word2, '이/가') + ' 맛있습니다.';
console.log(sentence2); // '바나나가 맛있습니다.'

Contributing

We welcome contribution from everyone in the community. Read below for detailed contribution guide.

CONTRIBUTING

License

MIT © Viva Republica, Inc. See LICENSE for details.

토스