Working method
Find an adjacent clean line from the same character. Match pacing and stresses, then vowel level and consonant brightness. Add short reflections until the distance matches. If the take is already too roomy, assess room echo reduction separately.
Checking the result
Audition from one line before the replacement. If the room changes during a pause, run continuous scene ambience under the entire insert. If articulation is off, fix the syllable before making further EQ adjustments.
Across a picture cut, match dialogue perspective against adjacent production lines.