Skip to content

Commit

Permalink
drop testing node 12
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed Oct 12, 2022
1 parent 8d2f41f commit d2c8d12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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
9 changes: 3 additions & 6 deletions scratch.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@ import nlp from './src/three.js'
// matches.forEach((m) => doc.remove(m))
// console.log(doc.text())

const txt = `before SW1A 2AA Remove me after`
const doc = nlp(txt)
doc.debug()
const matches = doc.match('Remove me')
matches.forEach((m) => doc.remove(m))
doc.debug()
let doc = nlp("he said I am a boy")
console.log(doc.verbs().json().map(obj => obj.verb.grammar))
// [ { form: 'simple-present', tense: 'PresentTense', copula: true } ]

// let doc = nlp(`Remove me 1. A some text. B some text. C some text`)
// console.log(doc)
Expand Down

0 comments on commit d2c8d12

Please sign in to comment.