# lindera-wasm-cc-cedict

> A morphological analysis library for WebAssembly.

Latest version **2.1.0** (published 2026-02-01) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install lindera-wasm-cc-cedict
pnpm add lindera-wasm-cc-cedict
yarn add lindera-wasm-cc-cedict
bun add lindera-wasm-cc-cedict
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2026-02-01 |
| First published | 2025-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 642 |
| Maintainers | mosuka |
| Keywords | morphological, analysis, library, wasm, webassembly |

## Links

- npm: https://www.npmjs.com/package/lindera-wasm-cc-cedict
- Repository: https://github.com/lindera/lindera
- Issues: https://github.com/lindera/lindera/issues
- npm.io page: https://npm.io/package/lindera-wasm-cc-cedict

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 2.1.0 (latest) — 2026-02-01
- 1.2.0 — 2025-10-15
- 1.1.1 — 2025-10-08
- 1.1.0 — 2025-09-13
- 1.0.0 — 2025-08-31
- 0.45.0 — 2025-08-01
- 0.44.1 — 2025-07-05
- 0.44.0 — 2025-06-28
- 0.43.7 — 2025-06-18
- 0.43.6 — 2025-06-18
- 0.43.5 — 2025-06-18
- 0.43.4 — 2025-06-18
- 0.43.3 — 2025-06-18

## README

# lindera-wasm

WebAssembly of Lindera

![Screenshot from 2025-09-13 23-05-49](https://github.com/user-attachments/assets/a6ca165a-825c-4260-ba52-d76cd262a21f)

## Demo Application

- <https://lindera.github.io/lindera-wasm/>

## npm

### Web

- <https://www.npmjs.com/package/lindera-wasm-web-cjk>  
Lindera WASM with CJK dictionaries (IPADIC, ko-dic, CC-CEDICT) for Web

- <https://www.npmjs.com/package/lindera-wasm-web-ipadic>  
Lindera WASM with Japanese dictionary (IPADIC) for Web

- <https://www.npmjs.com/package/lindera-wasm-web-unidic>  
Lindera WASM with Japanese dictionary (UniDic) for Web

- <https://www.npmjs.com/package/lindera-wasm-web-ko-dic>  
Lindera WASM with Korean dictionary (ko-dic) for Web

- <https://www.npmjs.com/package/lindera-wasm-web-cc-cedict>  
Lindera WASM with Chinese dictionary (CC-CEDICT) for Web

### Node.js

- <https://www.npmjs.com/package/lindera-wasm-nodejs-cjk>  
Lindera WASM with CJK dictionaries (IPADIC, ko-dic, CC-CEDICT) for Node.js

- <https://www.npmjs.com/package/lindera-wasm-nodejs-ipadic>  
Lindera WASM with Japanese dictionary (IPADIC) for Node.js

- <https://www.npmjs.com/package/lindera-wasm-nodejs-unidic>  
Lindera WASM with Japanese dictionary (UniDic) for Node.js

- <https://www.npmjs.com/package/lindera-wasm-nodejs-ko-dic>  
Lindera WASM with Korean dictionary (ko-dic) for Node.js

- <https://www.npmjs.com/package/lindera-wasm-nodejs-cc-cedict>  
Lindera WASM with Chinese dictionary (CC-CEDICT) for Node.js

## Usage

init the wasm module before construct `TokenizerBuilder`:

```ts
import __wbg_init, { TokenizerBuilder } from 'lindera-wasm'

__wbg_init.then(() => {
    const builder = new TokenizerBuilder()
    //...
})
```

### for [Vite](https://vite.dev/) base project

You should exclude this package in the `optimizeDeps`:

```ts
// vite.config.js
import { defineConfig } from 'vite'

export default defineConfig({
  optimizeDeps: {
    exclude: [
      "lindera-wasm"
    ]
  },
})
```

### for Browser extension development

Set the `cors` config in vite.config.js

```ts
// vite.config.js
import { defineConfig } from 'vite'

export default defineConfig({
  server: {
    cors: {
      origin: [
        /chrome-extension:\/\//,
      ],
    },
  },
})
```

and set the `content_security_policy` to contains `wasm-unsafe-eval` in manifest.json:

```json
"content_security_policy": {
  "extension_pages": "script-src 'self' 'wasm-unsafe-eval';"
}
```

## Development

### Install project dependencies

- wasm-pack : <https://rustwasm.github.io/wasm-pack/installer/>

### Setup repository

```shell
# Clone the Lindera project repository
% git clone git@github.com:lindera/lindera.git
% cd lindera
```

### Build project

```shell
% make wasm-build
```

### Run tests

```shell
% make wasm-test
```

### Build example web application

```shell
% cd example && npm install && npm run build && cp index.html dist/index.html
```

### Run example web application

```shell
% cd example && npm run start
```

---
_Source: https://npm.io/package/lindera-wasm-cc-cedict · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
