UNPKG

compromise

Version:

modest natural language processing

10 lines (8 loc) • 219 B
import eachTerm from './_lib.js' // cheat- add the document's pointer to the terms const index = function (view) { eachTerm(view.document, (term, terms, t, n) => { term.index = [n, t] }) } export default index