Skip to content

Commit

Permalink
Merge pull request #790 from spencermountain/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spencermountain committed Oct 29, 2020
2 parents f1c5b50 + adc4e39 commit af3210f
Show file tree
Hide file tree
Showing 271 changed files with 9,893 additions and 1,560 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 13.x]
node-version: [10.x, 15.x]

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/coverage.yml
Expand Up @@ -3,10 +3,8 @@
name: Coverage

on:
push:
branches: [master]
pull_request:
branches: [master]
release:
types: [created]

jobs:
getCoverage:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -4,4 +4,6 @@ coverage/
.env
.nyc_output/
.vscode
coverage.lcov
coverage.lcov
codecov.yml
plugins/phrases/data/
2 changes: 1 addition & 1 deletion builds/compromise-tokenize.js

Large diffs are not rendered by default.

484 changes: 353 additions & 131 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.

484 changes: 353 additions & 131 deletions builds/compromise.mjs

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions changelog.md
Expand Up @@ -10,6 +10,16 @@ While all _Major_ releases should be reviewed, our only two _large_ releases are

<!-- #### [Unreleased] -->

#### 13.7.0
- **[change]** many misc tagging fixes
- 'if' is now a #Preposition
- possessive pronouns are #Pronoun and #Possessive
- more phrasal verbs
- make #Participle tag #PastTense
- favor #PastTense over #Participle interpretation in tagger
- **[change]** `@hasHyphen` returns false for sentence dashes
- a lot more testing

#### 13.6.0

- **[new]** first-attempt at `verbs().subject()` method
Expand Down
3 changes: 3 additions & 0 deletions codecov.yml
@@ -0,0 +1,3 @@
comment: false
branches:
- 'master'
1 change: 0 additions & 1 deletion data/abbreviations/misc.js
Expand Up @@ -41,7 +41,6 @@ module.exports = [
'vet',
// 'sing',//singular
'ver', //version
'vs',
'fem', //feminine
'masc', //masculine
'eng', //engineering/english
Expand Down
2 changes: 2 additions & 0 deletions data/adjectives/adjectives.js
Expand Up @@ -16,6 +16,7 @@ module.exports = [
'assuring',
'astonishing',
'blinding',
'below',
'boring',
'confusing',
'damaging',
Expand Down Expand Up @@ -498,6 +499,7 @@ module.exports = [
'upside down',
'upstairs',
'uptight',
'up to date',
'urban',
'usual',
'utter',
Expand Down
1 change: 0 additions & 1 deletion data/adjectives/comparables.js
Expand Up @@ -79,7 +79,6 @@ module.exports = [
'financial',
'fine',
'firm',
'fit',
'foamy',
'forgetful',
'formal',
Expand Down
3 changes: 2 additions & 1 deletion data/misc.js
Expand Up @@ -14,7 +14,7 @@ module.exports = {
am: 'Copula',
are: 'Copula',

if: 'Condition',
if: ['Condition', 'Preposition'],
unless: 'Condition',
lest: 'Condition',

Expand Down Expand Up @@ -55,6 +55,7 @@ module.exports = {
//misc
records: 'Plural',
'&': 'Conjunction',
vs: ['Conjunction', 'Abbreviation'],

//pronouns
i: ['Pronoun', 'Singular'],
Expand Down
4 changes: 3 additions & 1 deletion data/misc/adverbs.js
Expand Up @@ -15,6 +15,7 @@ module.exports = [
'anyway',
'apart',
'aside',
'as soon',
'at best',
'at large',
'at least',
Expand All @@ -28,6 +29,7 @@ module.exports = [
'definitely',
'directly',
'en masse',
'enough',
'ever',
'for example',
'for good',
Expand Down Expand Up @@ -81,7 +83,7 @@ module.exports = [
'upwards of',
'tiny bit',
'very',
'way',
'well',
'yep',
'yes',
]
1 change: 0 additions & 1 deletion data/misc/determiners.js
Expand Up @@ -7,7 +7,6 @@ module.exports = [
'each',
'either',
'else',
'enough',
'every',
'few',
'least',
Expand Down
1 change: 0 additions & 1 deletion data/misc/prepositions.js
Expand Up @@ -15,7 +15,6 @@ module.exports = [
'at',
'atop',
'barring',
'below',
'besides',
'between',
'bout',
Expand Down
5 changes: 5 additions & 0 deletions data/nouns/singulars.js
Expand Up @@ -30,9 +30,11 @@ module.exports = [
'grand slam',
'head start',
'home run',
'human right',
'home',
'house',
'insect',
'line',
'lunch',
'meeting',
'model',
Expand All @@ -43,8 +45,10 @@ module.exports = [
'part',
'patent',
'plate',
'player',
'problem',
'purpose',
'question',
'question mark',
'room',
'rose',
Expand All @@ -64,6 +68,7 @@ module.exports = [
'tv show',
'us dollar',
'us state',
'way',

//double-consonant rule
'bottle',
Expand Down
4 changes: 2 additions & 2 deletions data/verbs/infinitives.js
Expand Up @@ -210,6 +210,7 @@ module.exports = [
'favor',
'fear',
'feature',
'fit',
'figure',
'file',
'fill',
Expand Down Expand Up @@ -293,7 +294,6 @@ module.exports = [
'lift',
'like',
'limit',
'line',
'link',
'list',
'listen',
Expand All @@ -320,6 +320,7 @@ module.exports = [
'mingle',
'minus',
'mirror',
'misrepresent',
'monitor',
'move',
'multiply',
Expand Down Expand Up @@ -381,7 +382,6 @@ module.exports = [
'purchase',
'pursue',
'push',
'question',
'raise',
'range',
'rank',
Expand Down
14 changes: 14 additions & 0 deletions data/verbs/phrasals.js
Expand Up @@ -96,6 +96,9 @@ module.exports = [
'burn in',
'burn off',
'burn out',
'bust up',
'bust out',
'bust in',
'butt in',
'butt out',
'buy out',
Expand Down Expand Up @@ -143,6 +146,7 @@ module.exports = [
'come together',
'come under',
'cook up',
'cool down',
'cool off',
'count off',
'count on',
Expand All @@ -154,6 +158,7 @@ module.exports = [
'cut out',
'cut up',
'do over',
'double up',
'dress down',
'dress up',
'drop away',
Expand Down Expand Up @@ -216,6 +221,7 @@ module.exports = [
'flip out',
'fold down',
'fold up',
'follow up',
'fool about',
'fool around',
'fool with',
Expand Down Expand Up @@ -322,6 +328,7 @@ module.exports = [
'horse around',
'hunker down',
'hush up',
'hurry up',
'iron out',
'jack in',
'jack off',
Expand All @@ -347,6 +354,7 @@ module.exports = [
'knock down',
'knock off',
'knock out',
'lace up',
'lap up',
'lash into',
'lash out',
Expand Down Expand Up @@ -496,6 +504,7 @@ module.exports = [
'put together',
'put up',
'rat out',
'rack up',
'reach in',
'reach out',
'read off',
Expand Down Expand Up @@ -530,6 +539,7 @@ module.exports = [
'run through',
'run under',
'rustle up',
'quiet down',
'sail off',
'save up',
'scale down',
Expand Down Expand Up @@ -601,6 +611,8 @@ module.exports = [
'snow out',
'sober up',
'sort out',
'spin up',
'speed up',
'spark up',
'spell out',
'spill over',
Expand Down Expand Up @@ -639,6 +651,7 @@ module.exports = [
'strike out',
'strike up',
'string up',
'stuck up',
'suck in',
'suck up',
'suit up',
Expand Down Expand Up @@ -697,6 +710,7 @@ module.exports = [
'top out',
'top up',
'toss up',
'track down',
'trade in',
'trade up',
'trickle down',
Expand Down
19 changes: 10 additions & 9 deletions data/verbs/verbs.js
@@ -1,21 +1,22 @@
//verbs we shouldn't conjugate
module.exports = [
'awaken',
'has',
'keep tabs',
'known',
'born',
'cannot',
'awaken',
'gonna',
'msg',
'seen',
'shown',
'make sure',
//
'frighten',
'given',
'gonna',
'has',
'hasten',
'heighten',
'keep tabs',
'known',
'lengthen',
'lessen',
'make sure',
'msg',
'seen',
'shown',
'worsen',
]

0 comments on commit af3210f

Please sign in to comment.