@diplodoc/sentenizer
Advanced tools
Comparing version 0.0.3 to 0.0.4
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30757
645
1