# 词缀语法

词缀语法是一种形式语法体系，其语法规则带有参数，这些参数称为词缀，在推导过程中承载时态、数、格、一致关系等语言特征。词缀充当非终结符上的参数，而除词缀之外，这套语法就是上下文无关风格的语法，于是单条规则便能强制相关成分携带彼此匹配的特征值。科斯特（Koster）的 AGFL（有限格上的词缀语法，Affix Grammar over a Finite Lattice）是这一构想最著名的实现。<sup>[1](https://www.cs.ru.nl/bachelors-theses/2024/Thijs_van_den_Berg___1073084___Analysing_the_structure_of_Latin_sentences_using_formal_grammar.pdf)</sup>

| 关键事实 | 说明 |
|---|---|
| 核心机制 | 语法规则带有参数（词缀），用以标示时态、数、格及其他语言特征<sup>[1](https://www.cs.ru.nl/bachelors-theses/2024/Thijs_van_den_Berg___1073084___Analysing_the_structure_of_Latin_sentences_using_formal_grammar.pdf)</sup> |
| 术语 | 在词缀语法中，属性被当作附着于非终结符的元词缀；而“词缀”一词在传统语法中指的是前缀、中缀或后缀，因此有些作者把“属性”一词专门留给这一形式装置<sup>[2](https://www.cs.bme.hu/~naso/langeng/csi91.pdf)</sup> |
| 已知形式体系 | AGFL（有限格上的词缀语法），与科斯特相关联，实现了词缀语法的构想<sup>[1](https://www.cs.ru.nl/bachelors-theses/2024/Thijs_van_den_Berg___1073084___Analysing_the_structure_of_Latin_sentences_using_formal_grammar.pdf)</sup> |
| 两层语法中的近亲 | 当词缀可能取值的范围本身也由内容无关语法来描述时，所得的形式体系便是范·维恩加登两层语法<sup>[3](https://everything2.com/node/996497)</sup> |
| 计算限制 | 词缀语法这一形式体系不支持对词缀进行计算<sup>[3](https://everything2.com/node/996497)</sup> |
| 谱系归属 | 在形式语法体系的各类名录中，词缀语法、扩展词缀语法、范·维恩加登语法和属性语法作为彼此不同的变体并列出现<sup>[4](https://www.researchgate.net/publication/226506925_Affix_grammars_for_programming_languages)</sup> |

## 词缀在语法中如何运作

上下文无关语法在重写非终结符时不带记忆：一条名词短语规则本身无法要求句中靠后的动词与它在数上保持一致。词缀语法通过给非终结符附加参数而获得这一能力。一条处理句子的规则可以携带数与人称的词缀，它所调用的规则则继承或确定这些值，于是一致关系便作为推导的一部分得到检验，而无需另设机制。<sup>[1](https://www.cs.ru.nl/bachelors-theses/2024/Thijs_van_den_Berg___1073084___Analysing_the_structure_of_Latin_sentences_using_formal_grammar.pdf)</sup>

术语上需要留心。在传统语法用法中，词缀是附着于词的前缀、中缀或后缀。而在这一形式体系中，规则所携带的属性被视为语法非终结符的元词缀。为避免混淆，用 AGFL 描述自然语言的研究把“属性”一词用于这一形式装置，而把“词缀”留给传统的形态学含义。<sup>[2](https://www.cs.bme.hu/~naso/langeng/csi91.pdf)</sup>

在 AGFL 中，词缀取值来自有限的范围。<sup>[5](https://theses.gla.ac.uk/1102/01/1974wattphd.pdf)</sup> 当这些范围较为简单时，可以直接写进规则里。当词缀可能取值的范围由各自的内容无关语法来描述时，这一形式体系便成为范·维恩加登两层语法，其中较高层的语法管辖较低层语法所允许的形式。<sup>[3](https://everything2.com/node/996497)</sup> 两层语法传统中的一项相关分析把继承词缀视为一种属性，其值由它在推导中的语境决定。<sup>[5](https://theses.gla.ac.uk/1102/01/1974wattphd.pdf)</sup>

这一形式体系有一项被明确指出的局限：它不支持对词缀进行计算——词缀可以被传递、匹配和约束，但该形式体系不提供任何变换词缀的一般运算。<sup>[3](https://everything2.com/node/996497)</sup>

## 变体与近亲

形式语法名录把词缀语法与一组相关形式体系并列：扩展词缀语法、范·维恩加登（两层）语法和属性语法，其中最后一种把语义属性附着于分析树的节点，而不是把它们当作规则参数。<sup>[4](https://www.researchgate.net/publication/226506925_Affix_grammars_for_programming_languages)</sup> 词缀机制与属性机制应对的是同一种底层需求，即让语法规则对纯上下文无关规则无法表达的特征保持敏感，而这两个名称之间的界线在文献中屡有移动。<sup>[2](https://www.cs.bme.hu/~naso/langeng/csi91.pdf)</sup>

## 在语言描写中的使用

词缀语法一直被用作描写自然语言的实用工具，因为在自然语言中，一致关系和屈折变化使纯粹的上下文无关规则变得笨重难用。

**匈牙利语。** 一项关于匈牙利语句法描写的研究项目用 AGFL 对可接受的匈牙利语句子作出词法句法描写。作者们采取务实的态度，首先致力于一种分析性描写，把既有理论整合为一种一致的形式描写，之后再借助语料库语言学方法将其精炼为更具生成性的描写，从而既能验证或否证既有理论，也能着手开展关于句法合理性的定量研究。<sup>[2](https://www.cs.bme.hu/~naso/langeng/csi91.pdf)</sup>

**阿拉伯语。** 有人构建了一部词缀语法，用于自动分析两个[现代标准阿拉伯语](https://www.edgepedia.org/zh/modern-standard-arabic)样本语料库（一为口语，一为书面语），从而能够对二者进行自动比较。该语法使用诸如“子类”这样的词缀非终结符来选择词类，而同类的词类过滤手段在该情境中被证明是高效的。<sup>[6](https://citeseerx.ist.psu.edu/document?doi=c840e1d4a1dd1a3fef3c56d3ecdcc6753e09eb05&repid=rep1&type=pdf)</sup>

**拉丁语。** 晚近针对拉丁语句子结构的形式分析把词缀语法描述为实现了“以参数扩展语法”这一构想的形式体系，并使用 AGFL 风格的规则，其中词缀代表格、数等特征。<sup>[1](https://www.cs.ru.nl/bachelors-theses/2024/Thijs_van_den_Berg___1073084___Analysing_the_structure_of_Latin_sentences_using_formal_grammar.pdf)</sup>

## References

1. [Thijs van den Berg (2024). Analysing the structure of Latin sentences using formal grammar. Bachelor's thesis, Radboud University Nijmegen.](https://www.cs.ru.nl/bachelors-theses/2024/Thijs_van_den_Berg___1073084___Analysing_the_structure_of_Latin_sentences_using_formal_grammar.pdf)
2. [Towards an Affix Grammar (CSI 91 paper on AGFL description of Hungarian)](https://www.cs.bme.hu/~naso/langeng/csi91.pdf)
3. [affix grammar, Everything2 node](https://everything2.com/node/996497)
4. [Affix grammars for programming languages, ResearchGate](https://www.researchgate.net/publication/226506925_Affix_grammars_for_programming_languages)
5. [David Anthony Watt (1974). Analysis-oriented two-level grammars. PhD thesis, University of Glasgow.](https://theses.gla.ac.uk/1102/01/1974wattphd.pdf)
6. [An Affix Grammar for a Comparative Corpus-Based Study of Spoken and Written Modern Standard Arabic, CiteSeerX](https://citeseerx.ist.psu.edu/document?doi=c840e1d4a1dd1a3fef3c56d3ecdcc6753e09eb05&repid=rep1&type=pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 25, 2026 · Edited: Oct 15, 2026; Oct 25, 2026 · Last review: Oct 25, 2026*

Topic: 社会与历史 › 语言与语言学 › 语言学 › Formal and computational linguistics › Attribute and affix grammar formalisms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/affix-grammar

English original: https://www.edgepedia.org/affix-grammar
