Linguist: Only if a sentence can be diagrammed is it grammatical. Any grammatical sentence is recognized as grammatical by speakers of its language. Speaker X' s sentence can be diagrammed. So, speaker X' s sentence will be recognized as grammatical by speakers of its language.
The statement 'some ungrammatical sentences are diagrammable' is the reason that the linguist's reasoning is flawed.