Skip to content
forked from toss/es-hangul

A modern JavaScript library for handling Hangul characters.

Notifications You must be signed in to change notification settings

manudeli/es-hangul

 
 

Repository files navigation

es-hangul 로고

es-hangul

한국어 | English

es-hangul은 쉽게 한글을 다룰 수 있도록 돕는 JavaScript 라이브러리입니다. 편리하게 사용할 수 있는 모던한 라이브러리 API를 제공합니다. ECMAScript Modules을 사용하기 때문에, 사용자가 브라우저 환경에서 최소한의 코드를 내려받도록 할 수 있습니다.

사용 예시

초성 검색, 조사 붙이기와 같은 한글 작업을 간단히 할 수 있습니다.

import { chosungIncludes } from 'es-hangul';

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

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

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

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

기여하기

es-hangul 라이브러리에 기여하고 싶다고 생각하셨다면 아래 문서를 참고해주세요.

CONTRIBUTING

라이선스

MIT © Viva Republica, Inc. LICENSE 파일을 참고하세요.

토스

About

A modern JavaScript library for handling Hangul characters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 88.7%
  • JavaScript 10.0%
  • Shell 1.3%