using edgeNGram instead of nGram