Posibly
Compare and Convert Part-of-Speech Tagged Sentences to Expected Grammar.
Install
npm install --save posibly
Initialize
const Posibly = ;const posibly = 'V' 'DT' 'N';
Compare
// using posibly from aboveconst tagged = 'eat' 'V' 'food' 'N' ;const editPath = posibly;// editPath.distance = 1
Convert
// using editPath from aboveconst retagged = editPath;/* retagged = [ [ 'eat', 'V' ], [ null, 'DT' ], [ 'food', 'N' ], ]*/
Copyright 2017, Kyle Stafford (MIT License).