Extracts a pure list of stemmed words of a text filtered by stop words
Extracts a pure list of lemmatized words of a text filtered by stop words.
created
to create
creates
to create
cats
to cat
creating
to create
install using Yarn:
yarn add extract-lemmatized-nonstop-words
install using NPM:
npm i --save extract-lemmatized-nonstop-words
const extract = require('extract-lemmatized-nonstop-words');
const words = extract('He created these categories and they are better.');
returns:
Array (3 items)
0: Object
lemma: "create"
normal: "created"
pos: "VBD"
tag: "word"
value: "created"
vocabulary: "create"
1: Object
lemma: "category"
normal: "categories"
pos: "NNS"
tag: "word"
value: "categories"
vocabulary: "category"
2: Object
lemma: "good"
normal: "better"
pos: "JJR"
tag: "word"
value: "better"
vocabulary: "better"
Array.