code: function undef(w, i, depth, probs) {
    if (depth <= 1) return typeof probs[w[i]] === "undefined";
    if (typeof probs[w[i]] === "undefined") return true;
    return undef(w, i + 1, depth - 1, probs[w[i]]);
  }
docs: Check for undefined probabilities.