code: public Set<String> editMention(String mention) {
          Set<String> result = new HashSet<String>();
  
          // tokenize
          StringTokenizer tokens = new StringTokenizer(mention, delims, false);
          List<String> tokenList = new LinkedList<String>();
          if (tokens.countTokens() < 3)
              return result;
          while (tokens.hasMoreTokens()) {
              tokenList.add(tokens.nextToken());
          }
          String first = tokenList.get(0);
          String second = tokenList.get(1);
          String third = tokenList.get(2);
          if (second.equals("and") || second.equals("or") || second.equals("to")) {
              if (directions.contains(first) && directions.contains(third)) {
                  // log.info( first + " " + second + " " + third + " Full:" + s
                  // );
                  int spot = mention.indexOf(third) + third.length();
                  result.add(first + mention.substring(spot));
                  result.add(third + mention.substring(spot));
              }
          }
          return result;
      }
docs: split the mention using the directions