In linguistics, grammaticality is conformity to grammar. The notion of grammaticality rose alongside the theory of generative grammar, the goal of which is to formulate rules that define well-formed, grammatical sentences. These rules of grammaticality also provide explanations of ill-formed, ungrammatical sentences. In theoretical linguistics, a speaker's judgement on the well-formedness of a linguistic 'string'—called a grammaticality judgement—is based on whether the sentence is interpreted in accordance with the rules and constraints of the relevant grammar. If the rules and constraints of the particular lect are followed, then the sentence is judged to be grammatical. In contrast, an ungrammatical sentence is one that violates the rules of the given language variety. Linguists use grammaticality judgements to investigate the syntactic structure of sentences. Generative linguists are largely of the opinion that for native speakers of natural languages, grammaticality is a matter of linguistic intuition, and reflects the innate linguistic competence of speakers. Therefore, generative linguists attempt to predict grammaticality judgements exhaustively. Grammaticality judgements are largely based on an individual's linguistic intuition, and it has been pointed out that humans have the ability to understand as well as produce an infinitely large number of new sentences that have never been seen before. This allows us to accurately judge a sentence as grammatical or ungrammatical, even if it is a completely novel sentence.
Background
Criteria that determine grammaticality According to Chomsky, a speaker's grammaticality judgement is based on two factors:
A native speaker's linguistic competence, which is the knowledge that they have of their language, allows them to easily judge whether a sentence is grammatical or ungrammatical based on intuitive introspection. For this reason, such judgements are sometimes called introspective grammaticality judgements. The context in which the sentence was uttered.
Criteria that do not determine grammaticality In his study of grammaticality in the 1950s, Chomsky identified three criteria which cannot be used to determine whether a sentence is grammatical:
Whether the sentence is included in a corpus, Whether the sentence is meaningful, Whether the sentence is statistically probable. To illustrate this point, Chomsky created the nonsensical sentence in (1), which does not occur in any corpus, is not meaningful, and is not statistically probable. However, the form of this sentence is judged to be grammatical by many native speakers of English. Such grammaticality judgements reflect the fact that the structure of sentence (1) obeys the rules of English grammar. This can be seen by comparing sentence (1) with sentence (2). Both sentences have the same structure, and both are grammatically well-formed.
(1) Colorless green ideas sleep furiously. (Chomsky 1957: 17) (2) Harmless young children sleep quietly.
Sentence (1) is grammatical yet infelicitous, because the pragmatics of the verb 'sleep' cannot be expressed as an action carried out in a furious manner. Hence, a native speaker would rate this sentence as odd, or unacceptable, because the meaning does not make sense according to the English lexicon. Thus, for Chomsky a grammatical string is not necessarily a meaningful one. However, speakers can understand nonsensical strings by means of natural intonation. In addition, non-meaningful but grammatical sentences are often recalled more easily than ungrammatical sentences.
Grammaticality versus acceptability
When Chomsky introduced the concept of grammaticality, he also introduced the concept of acceptability. Chomsky has emphasized that "the notion of 'acceptable' is not to be confused with 'grammatical.'" For linguists such as Hopper, who stress the role of social learning in contrast to innate knowledge of language, there has been a gradual abandonment of talk about grammaticality in favour of acceptability. Acceptability is:
A sentence that is consciously considered acceptable by both the speaker and hearer, A natural, appropriate, and meaningful sentence within a context, Related to a speaker's performance, and based on how a language would actually be used in a real situation, Speaker-oriented, depending on what speakers consider appropriate. On the other hand, grammaticality is:
A linguistic ‘string’ that follows a set of given rules, A grammatical utterance that is not necessarily meaningful, Based on a native speaker's competence or knowledge of a language, Defined by the possible outputs a particular grammar can generate. In experiments, grammaticality and acceptability are often confused, but speakers may be asked to give their 'grammatical judgments' instead of 'acceptability judgments'. The general assumption is that a native speaker's grammar produces grammatical strings and that the speaker can also judge whether the strings are acceptable in their language.
Gradience in acceptability The traditional categorical interpretation of grammaticality is that a sentence is either grammatical or ungrammatical. Many modern linguists, including Sprouse, support this idea. Acceptability judgments, on the other hand, fall in a continuous spectrum. Sentences may either be clearly acceptable or clearly unacceptable, but there are also sentences that are partially acceptable. Hence, according to Sprouse, the difference between grammaticality and acceptability is that grammatical knowledge is categorical, but acceptability is a gradient scale. Linguists may use words, numbers, or typographical symbols such as question marks (?) or asterisks (*) to represent the judged acceptability of a linguistic string. During a judgment task, the speaker may report the acceptability of a sentence as acceptable, marginally acceptable, unacceptable, terrible, good, etc. Degrees of acceptability can also be represented by symbols such as ?, ??, *, **, or on a scale of 0-?-*-**, with 0 being acceptable and ** being unacceptable. On a seven-point scale, speakers can rate sentences from 1 (least acceptable) to 7 (most acceptable).
(3) *** The Sally hugged him the Thomas (4) ** The Sally hugged him Thomas (5) * The Sally hugged Thomas (6) ??? Which the friend Thomas has painted a picture of? (7) ?? Which friend Thomas had painted a picture of? (8) ? Which friend has Thomas painted the picture of?
… excerpt ends here. Continue reading the full article.

