index.js
function findPhrase(match) {
  var node = match.node
  var prev = findPhraseInDirection(node, match.index, match.parent, -1)
  var next = findPhraseInDirection(node, match.index, match.parent, 1)
  var stems = merge(prev.stems, stemNode(node), next.stems)

  return {
    stems: stems,
    value: stems.join(' '),
    nodes: merge(prev.nodes, node, next.nodes)
  }
}
function findPhrase(match) {
  var node = match.node
  var prev = findPhraseInDirection(node, match.index, match.parent, -1)
  var next = findPhraseInDirection(node, match.index, match.parent, 1)
  var stems = merge(prev.stems, stemNode(node), next.stems)

  return {
    stems: stems,
    value: stems.join(' '),
    nodes: merge(prev.nodes, node, next.nodes)
  }
}
function findPhrase ( match ) { var node = match . node var prev = findPhraseInDirection ( node , match . index , match . parent , - 1 ) var next = findPhraseInDirection ( node , match . index , match . parent , 1 ) var stems = merge ( prev . stems , stemNode ( node ) , next . stems ) return { stems : stems , value : stems . join ( ' ' ) , nodes : merge ( prev . nodes , node , next . nodes ) } }
Find the phrase surrounding a node.
Find the phrase surrounding a node .