Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@diplodoc/sentenizer

Package Overview
Dependencies
Maintainers
9
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@diplodoc/sentenizer - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

4

lib/constants.d.ts
declare const SENTENCE_END_MARKERS = ".?!\u2026";
declare const QUOTATION_GENERIC_MARKERS = "\"\u201E'";
declare const QUOTATION_CLOSE_MARKERS = "\u00BB\u201D\u2019";
declare const QUOTATION_GENERIC_MARKERS = "\u00AB\"\u201E'";
declare const QUOTATION_CLOSE_MARKERS = "\u00BB\"\u201D\u2019";
declare const BRACKETS_CLOSE_MARKERS = "\\)\\]\\}>";
declare const WINDOW_WIDTH = 10;
export { SENTENCE_END_MARKERS, QUOTATION_GENERIC_MARKERS, QUOTATION_CLOSE_MARKERS, WINDOW_WIDTH, BRACKETS_CLOSE_MARKERS, };

@@ -34,4 +34,4 @@ var __defProp = Object.defineProperty;

var SENTENCE_END_MARKERS = ".?!\u2026";
var QUOTATION_GENERIC_MARKERS = `"\u201E'`;
var QUOTATION_CLOSE_MARKERS = "\xBB\u201D\u2019";
var QUOTATION_GENERIC_MARKERS = `\xAB"\u201E'`;
var QUOTATION_CLOSE_MARKERS = '\xBB"\u201D\u2019';
var BRACKETS_CLOSE_MARKERS = "\\)\\]\\}>";

@@ -465,5 +465,9 @@ var WINDOW_WIDTH = 10;

var insideAbbreviationMap = (0, import_ramda7.anyPass)([
// @ts-ignore
(0, import_ramda7.prop)(import_ramda7.__, INITIALS),
// @ts-ignore
(0, import_ramda7.prop)(import_ramda7.__, HEAD),
// @ts-ignore
(0, import_ramda7.prop)(import_ramda7.__, TAIL),
// @ts-ignore
(0, import_ramda7.prop)(import_ramda7.__, OTHER)

@@ -537,4 +541,3 @@ ]);

}
var postprocessor = (0, import_ramda8.map)(import_ramda8.trim);
var sentenize = (0, import_ramda8.compose)(postprocessor, processor);
var sentenize = processor;
// Annotate the CommonJS export names for ESM import in node:

@@ -541,0 +544,0 @@ 0 && (module.exports = {

@@ -1,2 +0,3 @@

declare const sentenize: (text: string) => string[];
declare function processor(text: string): string[];
declare const sentenize: typeof processor;
export { sentenize };
{
"name": "@diplodoc/sentenizer",
"version": "0.0.3",
"version": "0.0.4",
"description": "text segmentation into sentences",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/diplodoc-platform/sentenizer",

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