splitsentences

1.0.3 • Public • Published

This function receives some string content and a maximum length, and will break the content into a collection of strings that will fit the maximum length, but prioritizing: (a) sentences, (b) sentence fragments, (c) and lastly, words.

Example

const splitSentences = require('splitsentences');
const hugecontent = 'Blah blah blah.';
console.log(splitSentences(hugecontent,200));

Readme

Keywords

none

Package Sidebar

Install

npm i splitsentences

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.32 kB

Total Files

3

Last publish

Collaborators

  • joshuacurtiss