spamscanner 5.1.4 → 5.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -13,11 +13,11 @@ const NaiveBayes = require('@ladjs/naivebayes');
13
13
  const RE2 = require('re2');
14
14
  const arrayJoinConjunction = require('array-join-conjunction');
15
15
  const bitcoinRegex = require('bitcoin-regex');
16
- const contractions = require('expand-contractions');
17
16
  const creditCardRegex = require('credit-card-regex');
18
17
  const emailRegexSafe = require('email-regex-safe');
19
18
  const emojiPatterns = require('emoji-patterns');
20
19
  const escapeStringRegexp = require('escape-string-regexp');
20
+ const expandContractions = require('@stdlib/nlp-expand-contractions');
21
21
  const fileExtension = require('file-extension');
22
22
  const floatingPointRegex = require('floating-point-regex');
23
23
  const franc = require('franc');
@@ -1264,7 +1264,7 @@ class SpamScanner {
1264
1264
  //
1265
1265
  // NOTE: we're doing this for all languages now, not just en
1266
1266
  //
1267
- string = contractions.expand(string);
1267
+ string = expandContractions(string);
1268
1268
 
1269
1269
  //
1270
1270
  // Future research:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "spamscanner",
3
3
  "description": "Spam Scanner - The Best Anti-Spam Scanning Service and Anti-Spam API",
4
- "version": "5.1.4",
4
+ "version": "5.1.5",
5
5
  "author": "Niftylettuce, LLC. <niftylettuce@gmail.com> (https://niftylettuce.com/)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/spamscanner/spamscanner/issues",
@@ -13,6 +13,7 @@
13
13
  ],
14
14
  "dependencies": {
15
15
  "@ladjs/naivebayes": "^0.1.0",
16
+ "@stdlib/nlp-expand-contractions": "^0.0.8",
16
17
  "array-join-conjunction": "^1.0.0",
17
18
  "bitcoin-regex": "^2.0.0",
18
19
  "chinese-tokenizer": "^2.4.0",
@@ -24,7 +25,6 @@
24
25
  "email-regex-safe": "^1.0.2",
25
26
  "emoji-patterns": "^14.0.1",
26
27
  "escape-string-regexp": "4",
27
- "expand-contractions": "^1.0.1",
28
28
  "file-extension": "^4.0.5",
29
29
  "file-type": "16",
30
30
  "floating-point-regex": "^0.1.0",