> For AI agents: the complete documentation index is available at https://canary.gukhanmun.org/ko-KR/llms.txt, the full documentation bundle is available at https://canary.gukhanmun.org/ko-KR/llms-full.txt.

# Gukhanmun

> 국한문혼용체 한국어를 한글 전용 텍스트로 변환하는 Rust/JavaScript/Python 라이브러리

[소개](./guide/intro) | [CLI](./guide/cli/install) | [Rust](./guide/rust/install) | [JavaScript](./guide/javascript/install) | [Python](./guide/python/install)

## Features

- [<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"/></svg> **한자-한글 변환**](./guide/cli/start): 선택적 《표준국어대사전》 데이터와 함께, 한자가 섞인 국한문혼용체 한국어 텍스트를 한글 전용 출력으로 변환합니다.
- [<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"/></svg> **다양한 출력 형식**](./guide/cli/rendering): 평문 텍스트, HTML 조각(fragment), Markdown(CommonMark과 GFM)을 처리합니다. 한글 전용, 괄호 병기, 루비(ruby) 마크업 렌더링 모드를 지원합니다.
- [<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"/></svg> **사용자 정의 사전**](./guide/cli/dictionary): 전문 용어를 다루기 위하여, 공식 사전 데이터와 더불어 FST나 CDB 형식의 분야별 어휘를 불러올 수 있습니다.
- [<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"/></svg> **한자별 지시**](./guide/cli/directives): 특정 문자나 글로브(glob) 패턴에 대하여, 인라인으로 또는 지시 파일을 통하여 병기를 강제하거나 억제합니다.
- [<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"/></svg> **CLI, Rust, JavaScript, Python**](./guide/intro): 명령줄에서 사용하거나 Rust·Python에 내장할 수 있으며, JavaScript는 브라우저·Node.js·Deno·Bun에서 실행합니다.
- [<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"/></svg> **스트리밍 API**](./guide/javascript/streaming): Rust의 반복자(iterator) API로 문서를 점진적으로 처리합니다. JavaScript의 <code>TransformStream</code>과 Python의 청크 인터페이스(interface)는 최종화 시까지 문서 전체를 버퍼에 모읍니다.
