Installation
Add gukhanmun to your Cargo.toml:
Feature flags
All features below are enabled by default. Disable the defaults and select only the features you need to reduce compile time and binary size:
The loanwords feature includes gukhanmun-loanwords, the National Institute
of Korean Language's Loanword spelling examples dictionary. Preset::KoKr
selects it automatically; Preset::KoKp leaves it off. If you disable default
features, enable loanwords explicitly to make it available:
To build without the bundled dictionary (useful when you supply your own):
To build a minimal plain-text-only binary:
When disabling default features, also disable the corresponding preset
dictionaries on the builder. With only fst, call
.no_bundled_dictionaries(); with only stdict, call
.no_bundled_loanwords() before .build(). Requesting a bundled dictionary
whose feature is disabled returns a configuration error.