2.0.2 • Published 2 years ago

@textlint-rule/tokenize-english v2.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@textlint-rule/tokenize-english

Javascript tokenizer for english sentences.

Installation

$ npm install @textlint-rule/tokenize-english

Usage

var tokenize = require('@textlint-rule/tokenize-text')();
var tokenizeEnglish = require('@textlint-rule/tokenize-english')(tokenize);

var tokens = tokenizeEnglish.sentences("On Jan. 20, former Sen. Barack Obama became the 44th President of the U.S. Millions attended the Inauguration.")

/*
[ { index: 0,
    value: 'On Jan. 20, former Sen. Barack Obama became the 44th President of the U.S.',
    offset: 74 },
  { index: 74,
    value: ' Millions attended the Inauguration.',
    offset: 36 } ]
*/
2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago