Gukhanmun

Rust/JavaScript library that converts mixed-script Korean into hangul-only text

LogoLogo

Hanja-to-hangul conversion

Converts mixed-script Korean text containing hanja into hangul-only output, powered by the bundled *Standard Korean Dictionary*.

Multiple output formats

Processes plain text, HTML fragments, and Markdown (CommonMark and GFM). Supports hangul-only, parenthetical, and ruby markup rendering modes.

Custom dictionaries

Load domain-specific vocabulary in FST or CDB format alongside the bundled dictionary to handle specialised terminology.

Per-hanja directives

Force or suppress annotations for specific characters or glob patterns, inline or via a directives file.

CLI, Rust, and JavaScript

Use from the command line, embed in a Rust crate, or run in browsers, Node.js, Deno, and Bun via WebAssembly or a native Node.js addon.

Streaming API

Process arbitrarily large documents chunk by chunk with a TransformStream interface in JavaScript or an iterator API in Rust.

Support Gukhanmun

Help sustain the development and maintenance of free and open source tools for reading Korean text.

About sponsorship

Selected for FOSS for All Microgrants 2026. Thank you to FOSS for All and its donors.