Skip to content

Commit

Permalink
Merge pull request #1134 from spencermountain/dev
Browse files Browse the repository at this point in the history
14.14.0
  • Loading branch information
spencermountain authored Jul 31, 2024
2 parents b7088bc + dfcced2 commit 8565e74
Show file tree
Hide file tree
Showing 80 changed files with 2,479 additions and 8,530 deletions.
61 changes: 0 additions & 61 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 18.x]
node-version: [18.x, 22.x]
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
cache: npm

- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
cache: npm

- name: install
Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ coverage.lcov
codecov.yml
plugins/phrases/data/
learn/giga/result/
.scratch.js
.scratch.js
.eslintrc
.npmignore
.github
.gitignore
LICENSE
package-lock.json
rollup.config.js
10 changes: 0 additions & 10 deletions .jshintrc

This file was deleted.

24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ and how hard it is to actually <b>parse</b> and <i>use</i>?

<img height="45px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>

<!--
<!--
it is
<a href="https://docs.compromise.cool/compromise-filesize">small,
<a href="https://docs.compromise.cool/compromise-performance">quick</a>,
Expand Down Expand Up @@ -136,7 +136,7 @@ doc.places().json()
/*
[{
"text": "Milwaukee",
"terms": [{
"terms": [{
"normal": "milwaukee",
"syllables": ["mil", "wau", "kee"]
}]
Expand All @@ -148,7 +148,7 @@ doc.places().json()
<a href="https://docs.compromise.cool/compromise-json">json docs</a>
</div>
<div align="center">
<img height="50px" src="https://user-images.githubusercontent.com/399657/68221814-05ed1680-ffb8-11e9-8b6b-c7528d163871.png"/>
<img height="50px" src="https://user-images.githubusercontent.com/399657/68221814-05ed1680-ffb8-11e9-8b6b-c7528d163871.png"/>
</div>

<!-- spacer -->
Expand Down Expand Up @@ -292,11 +292,11 @@ import nlp from 'compromise/one'

let doc = nlp("Wayne's World, party time")
let data = doc.json()
/* [{
/* [{
normal:"wayne's world party time",
terms:[{ text: "Wayne's", normal: "wayne" },
terms:[{ text: "Wayne's", normal: "wayne" },
...
]
]
}]
*/
```
Expand Down Expand Up @@ -717,6 +717,8 @@ _(these methods are on the main `nlp` object)_
- **[.possessives().strip()](https://observablehq.com/@spencermountain/compromise-selections)** - "Spencer's" -> "Spencer"
- **[.quotations()](https://observablehq.com/@spencermountain/compromise-selections)** - return any terms inside paired quotation marks
- **[.quotations().strip()](https://observablehq.com/@spencermountain/compromise-selections)** - remove quotation marks
- **[.slashes()](https://observablehq.com/@spencermountain/compromise-selections)** - return any terms grouped by slashes
- **[.slashes().split()](https://observablehq.com/@spencermountain/compromise-selections)** - turn 'love/hate' into 'love hate'

<p>
<img height="85px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
Expand Down Expand Up @@ -990,7 +992,7 @@ nlpEx('This is type safe!').ngrams({ min: 1 })
</ul>
<p></p>
</details>
</p>
</p>
<p>
<details>
<summary>💃 Can it run on my arduino-watch?</summary>
Expand Down Expand Up @@ -1021,13 +1023,13 @@ nlpEx('This is type safe!').ngrams({ min: 1 })
<p></p>
<ul>
we do offer a <a href="https://observablehq.com/@spencermountain/compromise-filesize">tokenize-only</a> build, which has the POS-tagger pulled-out.
<br/>
<br/>
but otherwise, compromise isn't easily tree-shaken.
<br/>
<br/>
the tagging methods are competitive, and greedy, so it's not recommended to pull things out.
<br/>
<br/>
Note that without a full POS-tagging, the contraction-parser won't work perfectly. (<i>(spencer's cool)</i> vs. <i>(spencer's house)</i>)
<br/>
<br/>
It's recommended to run the library fully.
</ul>
<p></p>
Expand Down
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.

13 changes: 13 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ While all _Major_ releases should be reviewed, our only _large_ releases are **v
- **[fix]** - .before() .after()
-->

#### 14.14.0 [July 2024]
- **[new]** - .slashes() and .slashes().split() methods #1100
- **[fix]** - multiple contraction issue #1128
- **[fix]** - toNumbers() return values #1113
- **[fix]** - (plugins/wikipedia) - fix hard-coded path for #1116
- **[fix]** - (plugins/dates) - limit values in `mm/dd` format
- **[fix]** - (plugins/dates) params mutation #1109
- **[change]** - split people names by commas #1111
- **[change]** - typescript export update #1104
- **[update]** - eslint config format
- **[update]** - github actions
- **[update]** - dependencies

#### 14.13.0 [Apr 2024]

- **[new]** - .compute('freeze')
Expand Down
21 changes: 21 additions & 0 deletions data/lexicon/nouns/properNouns.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,27 @@ export default [
'stevens',
'abid',
'mcgill',
'hudson',
'chesley',
'carling',
'berkeley',
'beeton',
'carleton',
'ajax',
'weston',
'sherwood',
'wembley',
'hinton',
'bentley',
'landsdowne',
'brock',
'dalhousie',
'spalding',
'charlton',
'rothwell',
'gosford',
'frampton',
'fairview',
// currencies
'nis',
'riel',
Expand Down
1 change: 1 addition & 0 deletions data/lexicon/nouns/singulars.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,4 +431,5 @@ export default [
'cannibal',
'video game',
'layer',
'canton',
]
Loading

0 comments on commit 8565e74

Please sign in to comment.