MCPcopy
hub / github.com/toss/es-hangul

github.com/toss/es-hangul @2.3.8 sqlite

repository ↗ · DeepWiki ↗ · release 2.3.8 ↗
114 symbols 392 edges 139 files 0 documented · 0%
README

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 { getChoseong } from 'es-hangul';

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

const result = getChoseong(searchWord); // ㄹㅁ

// Check if the 'choseong' of the search word match the user input
if (result === userInput) {
  something()
}
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

Thanks to

We would like to express our special thanks to the owners of the following libraries for their significant contributions to the JavaScript ecosystem related to Hangul and for inspiring many developers: hangul-js: Jae-min Jo

License

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

<img alt="토스" src="https://static.toss.im/logos/png/4x/logo-toss.png" width="100">

Extension points exported contracts — how you extend this code

ReturnTypeDisassembleCompleteCharacter (Interface)
(no doc)
src/core/disassembleCompleteCharacter/disassembleCompleteCharacter.ts
ThemeModeProps (Interface)
(no doc)
docs/src/components/theme-mode/ThemeMode.tsx
Props (Interface)
(no doc)
docs/src/components/main/ListColumn.tsx
TypeSupportTableProps (Interface)
(no doc)
docs/src/pages/docs/advantages/reliability.tsx
TypeSupportTableProps (Interface)
(no doc)
docs/src/pages/docs/advantages/type-support-table.tsx
BenchmarkBarChart (Interface)
(no doc)
docs/src/pages/docs/advantages/benchmark-bar-chart.tsx

Core symbols most depended-on inside this repo

standardizePronunciation
called by 169
src/pronunciation/standardizePronunciation/standardizePronunciation.ts
disassembleCompleteCharacter
called by 75
src/core/disassembleCompleteCharacter/disassembleCompleteCharacter.ts
defined
called by 62
src/_internal/index.ts
josa
called by 58
src/core/josa/josa.ts
numberToHangul
called by 54
src/number/numberToHangul/numberToHangul.ts
numberToHangulMixed
called by 50
src/number/numberToHangulMixed/numberToHangulMixed.ts
romanize
called by 50
src/pronunciation/romanize/romanize.ts
hasBatchim
called by 40
src/core/hasBatchim/hasBatchim.ts

Shape

Function 108
Interface 6

Languages

TypeScript100%

Modules by API surface

src/_internal/hangul.ts11 symbols
src/_internal/index.ts9 symbols
src/pronunciation/standardizePronunciation/standardizePronunciation.ts8 symbols
src/pronunciation/standardizePronunciation/rules/transform13And14th.ts6 symbols
src/pronunciation/standardizePronunciation/rules/transform12th.ts6 symbols
docs/src/pages/docs/advantages/reliability.tsx6 symbols
src/number/susa/susa.ts4 symbols
src/pronunciation/standardizePronunciation/rules/transform20th.ts3 symbols
src/pronunciation/standardizePronunciation/rules/transform17th.ts3 symbols
src/pronunciation/standardizePronunciation/rules/transform16th.ts3 symbols
src/number/days/days.ts3 symbols
src/pronunciation/standardizePronunciation/rules/transformNLAssimilation.ts2 symbols

Dependencies from manifests, versioned

@arethetypeswrong/cli0.15.3 · 1×
@changesets/changelog-github0.5.1 · 1×
@changesets/cli2.29.2 · 1×
@codesandbox/sandpack-react2.18.0 · 1×
@codesandbox/sandpack-themes2.0.21 · 1×
@cspell/eslint-plugin8.10.0 · 1×
@faker-js/faker9.1.0 · 1×
@netlify/plugin-nextjs5.0.0 · 1×
@types/broken-link-checker0 · 1×
@types/josa3 · 1×
@types/node20.11.30 · 1×
@types/react18 · 1×

For agents

$ claude mcp add es-hangul \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact