Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including seg-zhcn with all npm packages installed. Try it out:

var segZhcn = require("seg-zhcn")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

seg-zhcn v0.0.2

a simplified Chinese segmentation method

Segmentation Zh-CN

Seg-zhCN is a simplified Chinese segmentation method.

License: This project is under GPL/BSD


Seg-zhCN focus on:

  • simple
  • fast
  • split statement into pieces

Seg-zhCN don't care about:

  • 100% accuracy
  • non simplified Chinese part
  • grammar

How to install

npm install seg-zhcn

How to use

// require
var seg = require('seg-zhcn');

// statement
var s = "我是中国人";

// get info
var info = seg.parse(s);


console.log(info.segment()); // 我 是 中国 人

// merge all steps into one step


You could contact me through for this extension. Or for programming related things, whatever.

This guy currently works in So you could also get him by

All rights reserved.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free