Lindera WASM
Lindera WASM provides WebAssembly bindings for Lindera's morphological analysis engine, built with wasm-bindgen. It enables Japanese, Korean, and Chinese text tokenization directly in web browsers, Node.js, and bundler environments.
Distribution Formats
Lindera WASM supports multiple distribution formats via wasm-pack:
| Target | Use Case | Module System |
|---|---|---|
web | Browser ESM | ES Modules |
bundler | Webpack, Vite, Rollup | ES Modules (bundler-resolved) |
Dictionary Packages
Each package embeds a specific dictionary for offline use:
| Feature Flag | Dictionary | Language |
|---|---|---|
| (none) | No embedded dictionary | -- |
embed-ipadic | IPADIC | Japanese |
embed-unidic | UniDic | Japanese |
embed-ko-dic | ko-dic | Korean |
embed-cc-cedict | CC-CEDICT | Chinese |
embed-jieba | Jieba | Chinese |
embed-cjk | IPADIC + ko-dic + Jieba | CJK |
Sections
- Installation -- Building and installing lindera-wasm packages
- Quick Start -- Minimal working example
- Tokenizer API -- Full API reference for JavaScript/TypeScript
- Dictionary Management -- Loading and building dictionaries
- Browser Usage -- Integration with web applications
- OPFS Dictionary Storage -- Persistent dictionary caching with OPFS