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

silly-nlp

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

silly-nlp - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

2

esm/index.js

@@ -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;

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