Just figured it out: word count!
var linkA = layers[0].textFrames[0].texts[0].words[2]; var linkB = layers[0].textFrames[0].texts[0].words[7];