JSPM

thai-cut-slim

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 113
  • Score
    100M100P100Q82186F
  • License GPL-3.0

word tokenization for thai language

Package Exports

  • thai-cut-slim

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (thai-cut-slim) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

thai-cut-slim

word tokenization for thai language

Installation

Use the package manager nodejs to install thai-cut-slim.

npm i -s thai-cut-slim

Usage

const thaiCut = require('thai-cut-slim')

thaiCut.cut('ทดสอบระบบตัดคำ') # returns ['ทดสอบ','ระบบ','ตัด','คำ']

Usage addon

const thaiCut = require('thai-cut-slim')

thaiCut.addon(['โห', 'อิอิ'])

thaiCut.cut('ทดสอบเพิ่มคำที่ไม่มีในดิกชันนารี่ เช่น โห อิอิ') # returns [ 'ทดสอบ', 'เพิ่ม', 'คำ', 'ที่', 'ไม่มี', 'ใน', 'ดิกชันนารี', 'เช่น', 'โห', 'อิอิ' ]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GNU General Public License v3.0