code: public int weightOf(String suggestion) {
          Node n = getNode(suggestion);
          return (n != null) ? n.weight : -1;
      }
docs: Returns the weight of the specified suggestion in this tree, or -1 if the
  tree does not contain the suggestion.
  @throws NullPointerException if the specified suggestion is {@code null}