/* eslint-disable no-console, no-unused-vars */ import corpus from 'nlp-corpus' //install with `npm i nlp-corpus --no-save` import nlp from '../../src/three.js' const texts = corpus.all() console.log(`\n\n--- running compromise on ${texts.length.toLocaleString()} random sentences---\n`) console.log(' --should take a few minutes--') for (let i = 0; i < texts.length; i++) { const txt = texts[i] nlp(txt) .sentences() .forEach(s => { s.verbs().forEach(vb => { if (vb.terms().not('(#Adverb|#Auxiliary|#Negative|#PhrasalVerb)').length > 1) { // console.log(vb.text()) } }) }) } console.log('\n\n - done!')