Skip to content

Commit

Permalink
Merge pull request #964 from spencermountain/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spencermountain authored Oct 12, 2022
2 parents d128f1b + d2c8d12 commit cde976e
Show file tree
Hide file tree
Showing 23 changed files with 402 additions and 264 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

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

steps:
Expand Down
27 changes: 8 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ don't you find it strange,
<br/>
<ul>
<img height="2px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
<sub>how <b>easy</b> text is to <b>make</b>,</sub>
<sub>how easy <b>text</b> is to <b>make</b>,</sub>
<br/>
<img height="2px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>

Expand Down Expand Up @@ -150,25 +150,7 @@ doc.places().json()
<div align="center">
<img height="50px" src="https://user-images.githubusercontent.com/399657/68221814-05ed1680-ffb8-11e9-8b6b-c7528d163871.png"/>
</div>
<!-- spacer -->
<img height="30px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>

quickly flip between *parsed* and *unparsed* forms:

```js
let doc = nlp('soft and yielding like a nerf ball')
doc.out({
'#Adjective': (m) => `<i>${m.text()}</i>`
})
// '<i>soft</i> and <i>yielding</i> like a nerf ball'
```

<div align="right">
<a href="https://docs.compromise.cool/compromise-output">output docs</a>
</div>
<div align="center">
<img height="50px" src="https://user-images.githubusercontent.com/399657/68221837-0d142480-ffb8-11e9-9d30-90669f1b897c.png"/>
</div>
<!-- spacer -->
<img height="30px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>

Expand Down Expand Up @@ -772,6 +754,13 @@ nlp.extend({
kermit: 'Character',
gonzo: 'Character',
},
// change inflections
irregulars: {
get: {
pastTense: 'gotten',
gerund: 'gettin'
},
},
// add new methods to compromise
api: (View) => {
View.prototype.kermitVoice = function () {
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.

4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ While all _Major_ releases should be reviewed, our only _large_ releases are **v
<!-- #### 14.5.0 [Unreleased]
-->

#### 14.5.1 [Oct 2022]
- **[fix]** - .remove() fixes
- **[update]** - dependencies

#### 14.5.0 [August 2022]
- **[fix]** - possible runtime error in setTag method
- **[change]** - make #Honorific always a #Person #951
Expand Down
Loading

0 comments on commit cde976e

Please sign in to comment.