code: private Set findSimilarTokens(String s,int i)
      {
          Set likeTokI = new HashSet();
          for (int j=Math.max(0,i-windowSize); j<Math.min(i+windowSize,numTokens); j++) {
              if (i!=j) {
                  Token tokj = allTokens[j];
                  double d = jaroWinklerDistance.score( s, tokj.getValue() );
                  if (d>=minTokenSimilarity) likeTokI.add( tokj );
              }
          }
          return likeTokI;
      }
docs: position of s in the list 'allTokens'