Skip to content

Commit

Permalink
Merge pull request #763 from spencermountain/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spencermountain authored Jun 10, 2020
2 parents 2875036 + 7b8848d commit 79d3ca0
Show file tree
Hide file tree
Showing 52 changed files with 1,817 additions and 909 deletions.
2 changes: 1 addition & 1 deletion builds/compromise-tokenize.js

Large diffs are not rendered by default.

172 changes: 70 additions & 102 deletions builds/compromise.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/compromise.min.js

Large diffs are not rendered by default.

172 changes: 70 additions & 102 deletions builds/compromise.mjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ While all _Major_ releases should be reviewed, our only two _large_ releases are

-move (some) contractions into tokenizer?

#### 13.3.0

- bugfixes (conjugation and tagging) 752, 737, 725, 751, 743 748, 755, 758, 706, 761
- support tokenized array as input
- update deps
- bugfix updates to `plugin-sentences`, and `plugin-dates`

#### 13.2.0

- deprecate `.money()` and favour overloaded method in compromise-numbers plugin
Expand Down
5 changes: 5 additions & 0 deletions data/numbers/cardinals.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ module.exports = [
'quintillion',
'sextillion',
'septillion',
// plural-multiples
'thousands',
'millions',
'billions',
'trillions',
]
1 change: 1 addition & 0 deletions data/people/maleNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,7 @@ module.exports = [
'vernon',
'vicente',
'victor',
'viktor',
'vihaan',
'vince',
'vincent',
Expand Down
1,506 changes: 1,022 additions & 484 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Spencer Kelly <[email protected]> (http://spencermounta.in)",
"name": "compromise",
"description": "modest natural language processing",
"version": "13.2.0",
"version": "13.3.0",
"main": "./builds/compromise.js",
"unpkg": "./builds/compromise.min.js",
"module": "./builds/compromise.mjs",
Expand Down Expand Up @@ -54,21 +54,21 @@
"efrt-unpack": "2.2.0"
},
"devDependencies": {
"@babel/core": "7.9.0",
"@babel/preset-env": "7.9.5",
"@rollup/plugin-alias": "3.1.0",
"@rollup/plugin-commonjs": "11.1.0",
"@rollup/plugin-json": "4.0.3",
"@rollup/plugin-node-resolve": "7.1.3",
"@babel/core": "7.10.2",
"@babel/preset-env": "7.10.2",
"@rollup/plugin-alias": "3.1.1",
"@rollup/plugin-commonjs": "13.0.0",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "8.0.1",
"amble": "1.0.0",
"efrt": "2.2.2",
"rollup": "2.7.2",
"rollup": "2.15.0",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-filesize-check": "0.0.1",
"rollup-plugin-terser": "5.3.0",
"rollup-plugin-terser": "6.1.0",
"shelljs": "0.8.4",
"tap-dancer": "0.2.0",
"tape": "5.0.0"
"tape": "5.0.1"
},
"eslintIgnore": [
"builds/*.js",
Expand Down
6 changes: 3 additions & 3 deletions plugins/adjectives/src/toVerb.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let dontDo = ['c', 'e', 'g', 'l', 'n', 'r', 'w', 'y'].reduce((h, c) => {

const dontDoTwo = { ed: true, nt: true }

const blacklist = {
const banList = {
random: true,
wild: true,
}
Expand All @@ -24,15 +24,15 @@ const irregulars = {
tired: 'tire',
}

const toVerb = str => {
const toVerb = (str) => {
if (irregulars.hasOwnProperty(str) === true) {
return irregulars[str]
}
//don't bother with these:
if (str.length <= 3) {
return null
}
if (blacklist.hasOwnProperty(str) === true) {
if (banList.hasOwnProperty(str) === true) {
return null
}
//suffixes to avoid
Expand Down
106 changes: 69 additions & 37 deletions plugins/dates/builds/compromise-dates.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/dates/builds/compromise-dates.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/dates/builds/compromise-dates.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 79d3ca0

Please sign in to comment.