private String[] spliterator(String phrase){
  String[] split=phrase.split(" ");
  String[] out=new String[split.length];
  for (int ix=1; ix < split.length; ix++) {
    String temp=split[ix - 1];
    temp+=" " + split[ix];
    out[ix - 1]=temp;
  }
  return out;
}

private String [ ] spliterator ( String phrase ) { String [ ] split = phrase . split ( " " ) ; String [ ] out = new String [ split . length ] ; for ( int ix = 1 ; ix < split . length ; ix ++ ) { String temp = split [ ix - 1 ] ; temp += " " + split [ ix ] ; out [ ix - 1 ] = temp ; } return out ; }
splits the phrase into groups of two , with overlap this is for achieving a chain length of three
