public void store(String sentence) {
    String splitSent[] = parseString(sentence);
    Sentence sent = new Sentence();
    if (splitSent.length == 1) sent.setlhsrhs("", splitSent[0]);
    else sent.setlhsrhs(splitSent[0], splitSent[1]);

    String key = sent.rhs.fnName;
    if (KB.containsKey(key)) {
      Rule temp = KB.get(key);
      temp.sentences.add(sent);
      KB.put(key, temp);
    } else {
      Rule r = new Rule();
      r.sentences.add(sent);
      KB.put(key, r);
    }
  }