Skip to content

Commit

Permalink
14.8.0rc
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed Nov 25, 2022
1 parent 984a3cf commit 10a94a7
Show file tree
Hide file tree
Showing 21 changed files with 73 additions and 55 deletions.
2 changes: 1 addition & 1 deletion builds/compromise.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/one/compromise-one.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/one/compromise-one.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/three/compromise-three.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/three/compromise-three.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/two/compromise-two.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/two/compromise-two.mjs

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,19 @@ While all _Major_ releases should be reviewed, our only _large_ releases are **v
- remove confidence numbers
-->

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

#### 14.8.0
- **[fix]** - tagging fixes
- **[new]** - add Person .presumedMale(), .presumedFemale() methods
- **[new]** - add Pronoun class, .refersTo()
- **[new]** - add Noun.references()
- **[new]** - .nouns('spencer') shorthand as an if-match
- **[change]** - "[do] you .." etc now #QuestionWord
- **[new]** - add #Hyphenated tag
- **[fix]** - improved Auxiliary verb tagging
-->
- **[update]** - dependencies

#### 14.7.1
- **[fix]** - concat fix
Expand Down
2 changes: 2 additions & 0 deletions data/lexicon/adjectives/adjectives.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,5 +657,7 @@ export default [
'subpar',
'ingrown',
'agreeable',
'vile',
'win win',
]

1 change: 1 addition & 0 deletions data/lexicon/people/maleNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ export default [
'nikau',
'nikhil',
'nikola',
'niles',
'noah',
'noam',
'noel',
Expand Down
1 change: 1 addition & 0 deletions data/lexicon/people/people.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default [
'tiger woods',
'valentino rossi',
'van gogh',
'niles crane',

//female
'halle berry',
Expand Down
3 changes: 3 additions & 0 deletions data/lexicon/switches/noun-verb.js
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,9 @@ export default [
'zone',
'zoom',
'combat',
'profile',
'stockpile',
'tile',
// -ate
// -ide
// 'saw',//hmm
Expand Down
5 changes: 4 additions & 1 deletion data/lexicon/verbs/infinitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,10 +682,13 @@ export default [
'remain',
'confirm',
'vie',
'reconcile',
'bathe',
'incite',

// -ile
'reconcile',
'compile',

// -ess
'profess',
'impress',
Expand Down
1 change: 1 addition & 0 deletions data/lexicon/verbs/phrasals.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ export default [
'spell out',
'spill over',
'spin up',
'spice up',
'splash out',
'split off',
'split up',
Expand Down
42 changes: 21 additions & 21 deletions package-lock.json

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

10 changes: 5 additions & 5 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": "14.7.1",
"version": "14.8.0",
"main": "./src/three.js",
"unpkg": "./builds/compromise.js",
"type": "module",
Expand Down Expand Up @@ -97,10 +97,10 @@
"devDependencies": {
"@rollup/plugin-node-resolve": "15.0.1",
"amble": "1.3.0",
"eslint": "8.27.0",
"eslint-plugin-regexp": "1.10.0",
"eslint": "8.28.0",
"eslint-plugin-regexp": "1.11.0",
"nlp-corpus": "4.4.0",
"rollup": "3.2.5",
"rollup": "3.4.0",
"rollup-plugin-filesize-check": "0.0.2",
"rollup-plugin-terser": "7.0.2",
"shelljs": "0.8.5",
Expand All @@ -114,4 +114,4 @@
"_tests/**"
],
"license": "MIT"
}
}
18 changes: 6 additions & 12 deletions scratch.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,14 @@ let arr = [
// `why the job [matters] to you `,
// `women never [like] Joey `,
// `I let another one [get] [away] `,
`He was [shot] in the chest and arm and [received] shrapnel [wounds]`,
`[Compile] information about [claims] you filed`,
`[Explore] [as] [much] of the game world as you can `,
// `J.P. Hayes [cost] himself a 2009 [spot] [on] this tour`,
// `He was [shot] in the chest and arm and [received] shrapnel [wounds]`,
// `[Compile] information about [claims] you filed`,
// `The flounder and fungus are [prepared] Sichuan style`,
// `By 9pm [she] [still] [had] potted a single ball `,
// `Garbage [dumps] [pose] health hazard `,
// `[Obtain] a [high] school diploma `,
// `I did [do] [too] well`,
// `a win-win situation`,
// `Radio Mirchi [spices] [up] [Indore] `,
// `[Browse] [to] the C:\\RealityFactory`,
// `[dressed] up for a fancy date `,
// `Uh-huh Jim [Carrey] is [challenged]`,
`Radio Mirchi [spices] [up] [Indore] `,
`[Browse] [to] the C:\\RealityFactory`,
`[dressed] up for a fancy date `,
`Uh-huh Jim [Carrey] is [challenged]`,
// `Stand tall [hold] your head high `,
// `Renovations at Union Station [reveal] pristine facade `,
// `only my eyes and teeth are [left] `,
Expand Down
1 change: 1 addition & 0 deletions src/2-two/preTagger/model/clues/_noun.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default {
another: n,//
versus: n,//
neither: n,//
about: n,//about claims
// strong adjectives
favorite: n,//
best: n,//
Expand Down
8 changes: 8 additions & 0 deletions src/2-two/preTagger/model/clues/_verb.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,17 @@ export default {
me: v, //date me
you: v, //date you
him: v, //loves him
us: v,//cost us
her: v, //
them: v, //
it: v, //hope it
himself: v,
herself: v,
itself: v,
myself: v,
ourselves: v,
themselves: v,

a: v, //covers a
an: v, //covers an
// from: v, //ranges from
Expand Down
Loading

0 comments on commit 10a94a7

Please sign in to comment.