Given an n-gram language model, we only calculate the scores in windows with the size 2n − 2, centered on the boundary of the substituted phrases.
although the idea is straightforward, we face two problems in practice.