Comparing version 0.0.9 to 0.0.10
@@ -145,3 +145,3 @@ import { includedIn, join, letIn, lowercase, max, nonempty, pipe, range, replace, reverse, sort, split, take, trim, trimWhitespace, } from "gamla"; | ||
export const negativeLookBehind = (x) => new RegExp(`(?<!${x.source})`, x.flags); | ||
const splitSentences = split(/(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=[,.?:])\s/); | ||
const splitSentences = split(/(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=[,!.?:])\s/); | ||
export const matchesRegexp = (r) => (txt) => r.test(txt); | ||
@@ -148,0 +148,0 @@ export const cleanSpeakers = pipe(splitSentences, remove(pipe(trimWhitespace, matchesRegexp(regexpEntireString(speaker)))), join(" "), replace(/\s+/g, " "), replace(speakerInEnd, ""), trimWhitespace); |
{ | ||
"name": "silly-nlp", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Silly nlp utils", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -165,3 +165,3 @@ "use strict"; | ||
exports.negativeLookBehind = negativeLookBehind; | ||
const splitSentences = (0, gamla_1.split)(/(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=[,.?:])\s/); | ||
const splitSentences = (0, gamla_1.split)(/(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=[,!.?:])\s/); | ||
const matchesRegexp = (r) => (txt) => r.test(txt); | ||
@@ -168,0 +168,0 @@ exports.matchesRegexp = matchesRegexp; |
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
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
9550107