Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

14.14.0 #1134

Merged
merged 27 commits into from
Jul 31, 2024
Merged

14.14.0 #1134

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
80fb175
update github action node versions
spencermountain May 17, 2024
0cfbcd9
split people by commas #1111
spencermountain Jun 8, 2024
f66569c
more place names
spencermountain Jun 8, 2024
1a252e1
more place and org tagging
spencermountain Jun 8, 2024
329f52b
fix #1113 toNumbers return vals
spencermountain Jun 10, 2024
bb38c7d
fix #1109
spencermountain Jun 10, 2024
9537bd2
gc <msg>
Jul 15, 2024
a15e444
fix(plugins/dates): limit values for days and months in `mm/dd` format
Fdawgs Jul 24, 2024
59a93ae
Merge pull request #1129 from Fdawgs/patch-1
spencermountain Jul 25, 2024
28baf2d
eslint fixes
spencermountain Jul 29, 2024
738125c
update deps
spencermountain Jul 29, 2024
c980e6c
fix hard-coded path for #1116
spencermountain Jul 29, 2024
59a93bf
add SlashedTerm tag
spencermountain Jul 29, 2024
d7c6912
start slashes.split method
spencermountain Jul 29, 2024
119c790
finish adding slashes method
spencermountain Jul 29, 2024
fabb6e3
remove #1124 list tagging
spencermountain Jul 29, 2024
59bcf11
Merge branch 'master' into dev
spencermountain Jul 30, 2024
81f9ad6
fix(plugins/dates): update regex.js because of dmy option #1132 #1129
hchiam Jul 30, 2024
8620c27
4 dmy tests failing
spencermountain Jul 31, 2024
dd96916
linting fixes
spencermountain Jul 31, 2024
f1f30e4
Merge pull request #1133 from hchiam/dmy-regex-dev-branch
spencermountain Jul 31, 2024
8aa5a97
update types and docs for dmy change
spencermountain Jul 31, 2024
02b571d
fix contraction issue #1128
spencermountain Jul 31, 2024
52268c9
plugins 3.6.0rc
spencermountain Jul 31, 2024
f6a84f7
wikipedia plugin 0.1.1
spencermountain Jul 31, 2024
15d4e39
14.14.0rc
spencermountain Jul 31, 2024
dfcced2
update rollup plugin, 14.14.0rc2
spencermountain Jul 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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