Add consideration of n-gram length.