I’m happy to announce KiwiKorean.jl, Julia bindings to Kiwi, a fast and accurate Korean morphological analyzer.
Until now, Korean text analysis in Julia meant calling Python (kiwipiepy, KoNLPy) through PyCall. KiwiKorean calls Kiwi’s C API directly via ccall. The library comes from Kiwi_jll, built in Yggdrasil for Linux (glibc and musl), macOS, Windows and FreeBSD, so no Python or Java is needed.
using Pkg; Pkg.add("KiwiKorean")
using KiwiKorean
tokenize("오늘 날씨가 좋네요") # [오늘/NNG, 날씨/NNG, 가/JKS, 좋/VA, 네요/EF]
nouns("오늘 날씨가 좋네요") # ["오늘", "날씨"]
morphs("걸어서 갔다"; lemma=true) # ["걷다", "어서", "가다", "었", "다"]
Features:
- Tokenization, POS tagging (Sejong tag set) and noun extraction, with tag-prefix filtering
- Dictionary forms of predicates (
lemma=true) - Byte spans into the original text
- Sentence splitting and spacing correction
- User dictionaries, typo correction, and unsupervised new-word extraction
- Plain
Vector{String}output that goes straight into TextAnalysis.jl (TokenDocument→ DTM → TF-IDF)
Docstrings are in English and Korean, and there’s a Korean README.
Thanks to bab2min for Kiwi, and to the General and Yggdrasil reviewers who helped me turn this into a proper JLL-based package.
Feedback, issues and PRs are welcome, especially from anyone doing Korean text mining or social-science research in Julia.