A syntactic error repair model is proposed, and is defined as a partia
l function from strings to sentences. The replacement of a substring o
f a string with a substring of a sentence is described by a repair pat
tern, which is roughly a pair of strings of grammar symbols. The model
can be efficient with some restriction on repair patterns. An LR-base
d implementation of the model is discussed.