grammatical inference
Inferring the grammar of a language, given a set of sentences labeled "grammatically correct", and a second (optional) set labelled "grammatically incorrect".
grammatical inference is part of the Natural Language Processing editor test terminology.