Require: Reference text R, Prediction text P, max n-gram N, weights {w_1, ..., w_N} Ensure: TexBLEU score Function Preprocess(R, P): R, P ← coherently spaced R, P Return R, P Function ...