index.js
function createTextNode (type, item) {
      var node = parser.createTextNode(type, item.surface_form)

      if (options && options.pos) {
        node.data = item
      }

      return node
    }
function createTextNode (type, item) {
      var node = parser.createTextNode(type, item.surface_form)

      if (options && options.pos) {
        node.data = item
      }

      return node
    }
function createTextNode ( type , item ) { var node = parser . createTextNode ( type , item . surface_form ) if ( options && options . pos ) { node . data = item } return node }
Create TextNode for SymbolNode, PunctuationNode, WhiteSpaceNode and SourceNode with POS.
@param type
@param item
@returns {{type: string, value: *}}
Create TextNode for SymbolNode PunctuationNode WhiteSpaceNode and SourceNode with POS .