winkNLP its

its is a helper function which can be passed to an out method in order to access various properties.

// import the winkNLP library and a language model import winkNLP from 'https://cdn.skypack.dev/wink-nlp'; import winkModel from 'https://cdn.skypack.dev/wink-eng-lite-web-model'; const nlp = winkNLP(winkModel); const its = nlp.its;
The its helper function has a variety of methods that you can use as an argument to the out method. By default, its returns the value of the item. Part Of Speech. Word stem. Word root. normal will convert tokens to lowercase and British spellings to American. Detail returns an object containing the value and type of an entitity. markup will highlight the entities in the given text.