finally, finished the part that can discover word groups - for perf testing