UNPKG

node-lemmatizer

Version:

A lemmatization library for Node.js to retrieve a base form from an inflected form word in English.

10 lines (7 loc) 273 B
const lemmatizer = require('./index.js'); let out = lemmatizer.lemmas('testing') console.log('Lemmas of the word "testing":'); console.log(out); if(JSON.stringify(out) === '[["testing","noun"],["test","verb"]]'){ console.log('\nProgram works perfectly!'); }