New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

wordcut

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wordcut

Thai word breaker for Node.js

latest
Source
npmnpm
Version
0.9.1
Version published
Weekly downloads
3.3K
17.71%
Maintainers
2
Weekly downloads
 
Created
Source

wordcut

Thai word breaker for Node.js

Installation

npm install wordcut

Usage

var wordcut = require("wordcut");

wordcut.init();
console.log(wordcut.cut("กากา"));

With additional custom dictionary

//see test/test_customdict.js
wordcut.init([customdict/*.txt],true);

Command line interface

npm install -g wordcut
echo 'กากากา' | wordcut

Options

  • --delim
  • --dict

Web API

node server.js

Trying Web API

curl -X POST --data-binary '{"line":"กากา"}' http://localhost:8882/segment

Development

  • Explanation in Thai about version 0.0.3 http://veer66.wordpress.com/2014/02/19/wordcut2014/

Keywords

word

FAQs

Package last updated on 18 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts