New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sbd

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sbd - npm Package Compare versions

Comparing version 0.0.6 to 1.0.0

2

package.json
{
"name": "sbd",
"version": "0.0.6",
"version": "1.0.0",
"description": "Split text into sentences with Sentence Boundary Detection (SBD).",

@@ -5,0 +5,0 @@ "main": "lib/tokenizer.js",

@@ -41,2 +41,25 @@ Sentence Boundary Detection (SBD)

// ]
// Sometimes newlines are important. Newlines can be treated as sentence endings
file.txt
"""
Title of project: Hello World
Author: Kenny
May, 2012
Lorem ipsum dolor sit amet. Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco (laboris nisi?) ut aliquip ex ea commodo consequat.
"""
var sentences = tokenizer.sentences(textFromFile, true);
// [
// 'Title of project: Hello World',
// 'Author: Kenny',
// 'May, 2012',
// 'Lorem ipsum dolor sit amet.',
// 'Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
// 'Ut enim ad minim veniam, quis nostrud exercitation ullamco (laboris nisi?) ut aliquip ex ea commodo consequat.'
// ]
```

@@ -43,0 +66,0 @@

@@ -45,2 +45,2 @@ /*jshint node:true, laxcomma:true */

});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc