Linguists have standardly assumed that grammar is about identifying all and only the 'good' sentences of a language, which implies that there must be other, 'bad' sentences- but in practice most linguists know that it is hard to pin those down.
British academic.