From d2c8d12973f5d01be73181f9820f5061b906c42b Mon Sep 17 00:00:00 2001 From: spencer kelly Date: Wed, 12 Oct 2022 14:59:16 -0400 Subject: [PATCH] drop testing node 12 --- .github/workflows/build-and-test.yml | 2 +- scratch.js | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) 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)