The state or attribute of obeying the rules of grammar; grammatical correctness.(noun)
Wiktionary.org : Text is available under the Creative Commons Attribution-ShareAlike License
Use "grammaticality" in a sentence
"But more seriously, is it really incorrect to say “There are 17 reasons why logic is not the test of grammaticality”?"
"(Not that you should give too much on L2 grammaticality judgments, even if they are, like this one, intuitive and not based on learning …)"
"Buried towards the end of a 1991 paper by Fisher, Gleitman & Gleitman is a strikingly useful -- and I think, correct -- observation on the limits of grammaticality studies."