Linguistic Acceptability Assessment — Grammaticality Judgment

Machine Learning
Introduced by
Noam Chomsky (theoretical foundations, 1957); Warstadt, Singh & Bowman (neural formulation, 2019)
Year
1957 (theory); 2019 (neural benchmark — CoLA)
Type
NLP binary/continuous classification task

What does it do?

Linguistic acceptability assessment is a natural-language-processing task that automatically estimates whether a sentence would be judged grammatically acceptable by a native speaker of the target language.

It rests on the linguistic distinction between grammatical and ungrammatical utterances, and was formalised as a neural benchmark by Warstadt, Singh and Bowman (2019) through the Corpus of Linguistic Acceptability (CoLA). The task is used in language-learning research, linguistics studies, and quality checks on natural-language-generation (NLG) output.

The intuition behind the method

Native speakers have strong, consistent intuitions about which sentences 'sound right' and which do not. A sentence such as 'The children played in the park' is immediately felt to be acceptable, while 'The children in played park the' is not. Linguistic acceptability assessment automates that intuition: a model trained on native-speaker judgments assigns an acceptability label or score to each input sentence, capturing the grammatical knowledge encoded in human language use without requiring the analyst to hand-craft rules.

History

The theoretical background lies in the linguistic distinction between grammatical and ungrammatical sentences, on which work in generative grammar has long relied. Warstadt, Singh and Bowman (2019) turned the task into a neural benchmark by introducing CoLA, a set of 10,657 English sentences labelled grammatical or ungrammatical from published linguistics literature. Their recurrent neural network baselines outperformed earlier unsupervised models on CoLA, but all models tested stayed far below human performance across a range of grammatical constructions.

When to use it

Choose linguistic acceptability assessment when you need to score the grammatical well-formedness of sentences in a specific language and a trained model or annotated dataset for that language is available. Typical cases are auditing NLG or machine-translation output, giving grammar feedback in language-learning tools, and testing hypotheses about which constructions models find hard. Do not use it when no target-language model exists, or when the question concerns meaning, factual accuracy, or fluency rather than grammatical acceptability. Use it only when the acceptability criterion can be expressed as a binary or continuous label, and when the sample is large enough for aggregate metrics to be stable.

Limitations and considerations

  • A model trained on acceptability in the target language must exist; for most languages other than English, such resources are limited.
  • Acceptability is gradient, so a binary label can oversimplify borderline sentences; this matters most when comparing mild and severe violations.
  • Models trained on CoLA-style data may not transfer to the register of the sentences being evaluated, because the corpus is drawn from linguistics publications rather than from learner writing or machine output.
  • Warstadt et al. (2019) report that all models they tested performed far below human level across a range of grammatical constructions, so aggregate scores should not be read as near-human grammatical competence.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Scores sentences by grammatical acceptability without hand-written rules for each construction, so one pipeline can be run over a large sentence set.
  • Training labels are grammatical versus ungrammatical judgments drawn from published linguistics literature (Warstadt et al., 2019), so the target matches the contrast linguists draw rather than surface fluency alone.
  • Error analysis by grammatical phenomenon can indicate which generalisations a model has learned; Warstadt et al. (2019) report that their models captured systematic generalisations such as subject-verb-object order.
  • The output can be a label or a graded score, so the same pipeline supports both classification and comparison of sentences along a continuum.

Applications

  • Auditing NLG and machine-translation outputs for grammatical well-formedness before deployment.
  • Providing automated grammar feedback in language-learning and writing-assistance applications.
  • Probing pretrained language models for the degree of grammatical knowledge encoded in their representations.
  • Testing computational linguistics hypotheses about which grammatical constructions are harder for models to learn.
  • Filtering noisy or machine-generated text in corpus construction pipelines.

How it works

How it works

1

A set of sentences is assembled for evaluation. These may come from learner corpora, NLG outputs, or linguistically curated sentence sets. Each sentence should be in the language for which a trained model or annotated benchmark exists. Small sets give unstable aggregate metrics, so a larger sample is preferable whenever it can be collected, and confidence intervals should be reported around aggregate scores.

2

Each sentence is converted into a numerical representation the model can process. For neural approaches, the tokenised sentence is passed through a pretrained language model, typically fine-tuned for acceptability classification (BERT-type encoders are one common choice), to obtain contextual embeddings. Word order and morphology are encoded only indirectly in these representations, so coverage of specific constructions should be checked in the evaluation step. Sentences used for fine-tuning must be kept separate from the evaluation sentences (see pitfalls).

3

The model assigns an acceptability label (acceptable or unacceptable) or a continuous acceptability score to each sentence. A binary classifier trained on CoLA gives a label and a confidence score. The output can be treated as binary (grammatical vs. ungrammatical) or as a graded measure, depending on the research need. If a continuous score is converted to a label, the cut-off must be chosen and validated on held-out gold-standard labels in the target language. A cut-off chosen for one model or dataset should not be assumed to apply to another, and scores from different models are not directly comparable.

4

Model predictions are compared against gold-standard human acceptability labels using Matthews Correlation Coefficient (MCC), accuracy, and F1. MCC is a suitable primary metric when the two labels are unevenly distributed, because accuracy can look high for a classifier that favours the majority label. Inspecting misclassified sentences by construction type can indicate which grammatical phenomena the model handles poorly; such patterns should be checked with targeted test sets before drawing conclusions about what the model has learned.

Common pitfalls

  • Applying a model trained on one language to sentences in another, even a closely related one, produces unreliable scores; verify that the model matches the target language.
  • Treating acceptability as a hard binary for gradient phenomena (for example, mild agreement errors versus word-order violations) can misrepresent the data; report continuous scores alongside labels where possible.
  • Relying on accuracy alone when one label dominates the sample gives misleading results; report MCC and F1 alongside accuracy.
  • Running the pipeline on a very small sample produces aggregate metrics that are unstable; interpret individual labels with care, or collect more sentences and report confidence intervals before comparing conditions.
  • Evaluating on sentences that also appear in fine-tuning data, or that a pretrained model may have encountered during pretraining, inflates scores. Keep a held-out test set separate from fine-tuning data, check for overlap with pretraining corpora where this can be determined, and draw the test set from the target register rather than from the training domain.

Frequently asked questions

What is CoLA and why is MCC used instead of accuracy?

CoLA (Corpus of Linguistic Acceptability) is a benchmark of 10,657 English sentences labelled as grammatical or ungrammatical, drawn from published linguistics literature. When the two labels are unevenly distributed, a classifier that favours the majority label can score well on accuracy without learning the distinction. Matthews Correlation Coefficient (MCC) takes all four cells of the confusion matrix into account, which is why it is the recommended primary metric for CoLA-style evaluation.

Can this method be applied to languages other than English?

Yes, but a model trained on acceptability judgments in the target language must exist. For languages beyond English, resources are limited; verify that the model's training domain and register match the sentences under evaluation before drawing conclusions.

What is the difference between linguistic acceptability and grammaticality?

Grammaticality is a formal property of whether a sentence is generated by a given grammar. Acceptability is an empirical, gradient notion reflecting native-speaker intuitions, which can be influenced by frequency, processing difficulty, and context. CoLA uses labels reflecting acceptability as judged in the source literature, so a model evaluated on it is compared against judgments of this empirical kind rather than against formal derivability alone.

How many sentences do I need to get meaningful results?

The stability of aggregate metrics depends on the size and composition of the sample, and small samples give unstable results. Individual labels and their confidence scores are more informative than MCC or accuracy when the sample is small. For comparisons between conditions, use as large a sample as feasible and report confidence intervals around the aggregate metrics.

Related methods

Sources

  1. Warstadt, A., Singh, A. & Bowman, S. (2019). Neural Network Acceptability Judgments. Transactions of the Association for Computational Linguistics, 7, 625–641.

    Open DOI reference
  2. Chomsky, N. (1957). Syntactic Structures. Mouton, The Hague.

    ISBN: 978-9027933249