diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 3f92fa0d6..a05972133 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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: diff --git a/scratch.js b/scratch.js index ac445a0bd..c84e115f3 100644 --- a/scratch.js +++ b/scratch.js @@ -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)