Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 491 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 491 Bytes

tiny-segmenter

TinySegmenter converted to TypeScript (and slightly more modern JS) and packaged as an npm module.

Installation

npm install @birchill/tiny-segmenter

Usage

import { TinySegmenter } from '@birchill/tiny-segmenter';

const segmenter = new TinySegmenter();
const segments = segmenter.segment('私の名前は中野です');
// segments = ['私', 'の', '名前', 'は', '中野', 'です']