index.js
function createWordNode (item) {
      var wordNode = parser.createParentNode('Word')

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

      var textNode = parser.createTextNode('Text', item.surface_form)

      parser.add(textNode, wordNode)

      return wordNode
    }
function createWordNode (item) {
      var wordNode = parser.createParentNode('Word')

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

      var textNode = parser.createTextNode('Text', item.surface_form)

      parser.add(textNode, wordNode)

      return wordNode
    }
function createWordNode ( item ) { var wordNode = parser . createParentNode ( 'Word' ) if ( options && options . pos ) { wordNode . data = item } var textNode = parser . createTextNode ( 'Text' , item . surface_form ) parser . add ( textNode , wordNode ) return wordNode }
Create WordNode with POS.
@param item
@returns {{type: string, value: *}}
Create WordNode with POS .