# 简易需求语法方法

**简易需求语法方法（Easy Approach to Requirements Syntax，EARS）**是一种轻量级记号法，用于以平实的英语书写文本形式的[系统需求](https://www.edgepedia.org/zh/system-requirements)；它由一小组关键词和固定的子句顺序构成，对自然语言施加约束而不取代自然语言。该方法由罗尔斯·罗伊斯（Rolls-Royce）的阿利斯泰尔·马文（Alistair Mavin，人称“马夫”）及其同事提出，当时他们正从一份适航规章中提取航空发动机控制系统的需求，该方法于 2009 年在第 17 届 IEEE [国际需求工程会议](https://www.edgepedia.org/zh/international-requirements-engineering-conference)上首次发表。<sup>[1](https://alistairmavin.com/ears/)</sup><sup> • </sup><sup>[2](https://research.manchester.ac.uk/en/publications/easy-approach-to-requirements-syntax-ears/)</sup>

| 关键事实 | 说明 |
|---|---|
| 它是什么 | 一种借助少量关键词和遵循时序逻辑的固定子句顺序，对自然语言需求加以温和约束的机制<sup>[1](https://alistairmavin.com/ears/)</sup> |
| 起源 | 在罗尔斯·罗伊斯分析喷气发动机控制系统适航规章时提出；2009 年首次发表<sup>[1](https://alistairmavin.com/ears/)</sup> |
| 原始论文 | 马文、威尔金森、哈伍德与诺瓦克，RE '09，IEEE，第 317–322 页<sup>[2](https://research.manchester.ac.uk/en/publications/easy-approach-to-requirements-syntax-ears/)</sup> |
| 模板 | 五种基本模式（普适型、状态驱动型、事件驱动型、可选特性型、非期望行为型），以及称为复合需求的组合形式<sup>[1](https://alistairmavin.com/ears/)</sup> |
| 规则集 | 零个或多个前置条件；零个或一个触发；一个系统名称；一个或多个系统响应<sup>[1](https://alistairmavin.com/ears/)</sup> |
| 所解决的问题 | 不受约束的自然语言的八种常见缺陷：歧义、含糊、复杂、遗漏、重复、冗长、不当实现与不可测试<sup>[3](https://specy.ai/reference/home/overview/)</sup> |
| 采用情况 | 使用者包括空中客车、博世、戴森、霍尼韦尔、英特尔、美国国家航空航天局、罗尔斯·罗伊斯和西门子等机构<sup>[1](https://alistairmavin.com/ears/)</sup> |

## 目的与动机

系统需求通常以不受约束的自然语言书写，而自然语言本身就不精确，需求撰写者往往也未受过如何撰写需求的训练。在系统开发过程中，利益相关方需求中的问题会向下层传播，造成波动与风险，影响项目进度和成本。<sup>[1](https://alistairmavin.com/ears/)</sup> 原始论文对问题的表述也是如此：一些专家主张采用非文本记号法以提高精确性，但把源需求转译成这类记号法可能引入新的错误，而且新记号法还带来培训负担。<sup>[2](https://research.manchester.ac.uk/en/publications/easy-approach-to-requirements-syntax-ears/)</sup>

EARS 取中间立场。它让需求保持为英语句子，因而无需转译步骤，但又施加一小组结构规则，使每条需求都遵循少数几种模板之一。其语法和关键词与英语的常见用法高度吻合，因此记号法直观、培训负担低，也不需要专门工具。<sup>[1](https://alistairmavin.com/ears/)</sup> 马文将 EARS 概括为一种“温和地约束”自然语言、以写出更好需求的方法。<sup>[4](https://cdn2.hubspot.net/hubfs/2367473/LeadGen%20Content/EARS%20-%20The%20Easy%20Approach%20to%20Requirements%20Syntax%20Guide.pdf)</sup>

## 语法与模式

EARS 需求的各个子句总是按同一顺序出现，遵循时序逻辑。其通用结构为：

> While <可选前置条件>，when <可选触发>，the <系统名称> shall <系统响应>

规则集要求：零个或多个前置条件、零个或一个触发、一个系统名称、一个或多个系统响应。<sup>[1](https://alistairmavin.com/ears/)</sup> 视所用子句的不同，一条需求归属于五种基本模式之一：<sup>[1](https://alistairmavin.com/ears/)</sup>

- **普适型（Ubiquitous）。** 始终有效，不含关键词：“The <系统> shall <响应>。”例如：手机的质量应小于 XX 克。
- **状态驱动型（State-driven）。** 只要某一状态成立就有效，用 *While* 标示："While there is no card in the ATM, the ATM shall display 'insert card to begin'."（当 ATM 内无卡时，ATM 应显示“请插卡开始”。）
- **事件驱动型（Event-driven）。** 规定对触发事件的响应，用 *When* 标示："When 'mute' is selected, the laptop shall suppress all audio output."（当选择“静音”时，笔记本电脑应屏蔽所有音频输出。）
- **可选特性型（Optional feature）。** 仅在包含某特性时适用，用 *Where* 标示："Where the car has a sunroof, the car shall have a sunroof control panel on the driver door."（若汽车配有天窗，则汽车应在驾驶员车门上设有天窗控制面板。）
- **非期望行为型（Unwanted behavior）。** 规定对非期望情形的响应，用 *If* 和 *Then* 标示："If an invalid credit card number is entered, then the website shall display 'please re-enter credit card details'."（若输入了无效的信用卡号，则网站应显示“请重新输入信用卡信息”。）

组合了不止一个关键词的需求称为复合需求，例如："While the aircraft is on ground, when reverse thrust is commanded, the engine control system shall enable reverse thrust."（当飞机在地面时，若下达反推指令，发动机控制系统应使能反推。）非期望行为型的复合需求同样包含 If-Then 关键词。<sup>[1](https://alistairmavin.com/ears/)</sup> 事件驱动型与非期望行为型模式用途不同：前者覆盖预期的、正面的行为，后者覆盖负面场景与故障条件。<sup>[5](https://link.springer.com/article/10.1007/s42979-025-03843-3)</sup>

## 发展历程

2009 年，马文与罗尔斯·罗伊斯一批跨专业工程师在分析一份适航规章、以确定航空发动机控制系统需求的过程中提出了 EARS。团队逐条审阅该规章文件的每个条款，判定其是否显式或隐式地对控制系统提出了需求，并运用一套初始规则来澄清和简化每条需求。这些规则在分析过程中反复迭代、逐步细化；马文注意到，当需求的各个子句总是以同一顺序出现时，需求最易阅读。<sup>[1](https://alistairmavin.com/ears/)</sup><sup> • </sup><sup>[6](https://www.jamasoftware.com/media/2023/12/adopting-the-ears-notation-to-improve-requirements-engineering.pdf)</sup>

2009 年论文中报告的案例研究表明，与常规文本规格说明相比，该方法在定性和定量两个方面都有改善：36 条原始需求被改写为 47 条各自的 EARS 表述，每条需求的平均长度从 36.9 词降到 25.6 词，评审显示八类问题均显著减少。<sup>[7](https://www.researchgate.net/publication/224079416_Easy_approach_to_requirements_syntax_EARS)</sup> 后续论文《Big Ears》（RE 2010）将模板应用于若干不同的需求文档集，进行背靠背比较，细化了模板，处理了已知局限，并收集了支持如下假设的度量数据：一小组简单的需求结构能有效改善高层利益相关方需求的撰写。<sup>[8](https://www.researchgate.net/publication/224195362_Big_Ears_The_Return_of_Easy_Approach_to_Requirements_Engineering)</sup> 回顾性文章《EARS 十年》于 2019 年发表于《IEEE Software》。<sup>[9](https://www.researchgate.net/publication/335535918_Ten_Years_of_EARS)</sup>

## 采用与工具支持

EARS 在世界范围内被各领域的大小机构使用，包括空中客车、博世、戴森、霍尼韦尔、英特尔、美国国家航空航天局、罗尔斯·罗伊斯和西门子，并在中国、法国、德国、瑞典、英国和美国的大学中讲授。<sup>[1](https://alistairmavin.com/ears/)</sup> 它最初的应用领域是系统与安全关键工程，包括航空航天、汽车、国防和医疗器械——在这些领域，需求要经过正式评审，歧义会带来实实在在的代价。<sup>[10](https://dev.codemyspec.com/blog/ears-notation)</sup>

围绕这一记号法也发展出了工具。EARS-CTRL 是一个构建在 MPS 语言工作台上的编辑器，可辅助编写和分析面向控制器的 EARS 需求，强制保证良构性，从术语表中提示用词，并支持自动化可行性检查以及从已验证需求生成同步数据流图。<sup>[5](https://link.springer.com/article/10.1007/s42979-025-03843-3)</sup> 研究者还使用自然语言处理来自动检查需求是否符合模板。<sup>[11](https://doi.org/10.1109/re.2009.9)</sup>

## 证据与比较

一项针对五种模板体系（EARS、MASTeR、Adv-EARS、Boilerplates 与 SPIDER）的比较评估，对来自五个项目的 249 条需求构成的数据集进行了改写，并依据 ISO/IEC/IEEE 29148 测量质量特性，同时开展了写作与阅读实验。在元模型层面，EARS 与 Adv-EARS 的元模型最为粗粒度、可能变体数量最少，两者的本体表达能力高度相似，缺陷率也相当低：EARS 的冗余度为 76.4%，Adv-EARS 为 67.3%，而 DODT 样板句为 274.5%；两者均完全没有多余（冗余）概念。<sup>[12](https://link.springer.com/article/10.1007/s00766-024-00427-0)</sup> 同一研究指出，模板体系并非拿来即用的解决方案，要取得有效结果需要相当多的初期培训。<sup>[12](https://link.springer.com/article/10.1007/s00766-024-00427-0)</sup>

一项针对可编程逻辑控制器（PLC）程序的需求工程与测试的对照实验，让十名参与者用 EARS 语法撰写三条需求，结果发现：参与者认为普适型需求在撰写、理解、验证和测试上都很简单；并且参与者是逐步起草需求的，先用状态驱动型和事件驱动型模式覆盖正常、无故障情况下的行为，再补充针对故障条件的非期望行为需求。<sup>[5](https://link.springer.com/article/10.1007/s42979-025-03843-3)</sup>

## 局限

EARS 约束的是需求的措辞方式；它并不能使需求变得正确、完整或与系统其余部分保持一致，它也不是可执行规格说明或行为测试。一条良构的 EARS 需求仍可能描述错误的行为，仍需要测试来验证系统。<sup>[10](https://dev.codemyspec.com/blog/ears-notation)</sup> 这一记号法也没有描述需求之间关系（例如架构重要需求之间的冲突）的机制。<sup>[13](https://note.com/re_blogroom/n/n8852689d5c13?hl=en-US)</sup> 在最初的案例研究中，应用 EARS 之后仍有一些问题残留：当需求使用“最小化”“限制”这类不可量化的词语时，不可测试性依然存在；而在矩阵或冗长的条件清单拆分为原子语句会造成组合爆炸的情况下，复杂性依然存在；歧义、含糊和冗长有所减少，但并未消除。<sup>[7](https://www.researchgate.net/publication/224079416_Easy_approach_to_requirements_syntax_EARS)</sup>

## References

1. [Alistair Mavin, EARS: Easy Approach to Requirements Syntax, Official Guide](https://alistairmavin.com/ears/)
2. [Mavin, A., Wilkinson, P., Harwood, A., & Novak, M. (2009). Easy Approach to Requirements Syntax (EARS). Proceedings of RE '09, IEEE, pp. 317–322, University of Manchester Research Explorer](https://research.manchester.ac.uk/en/publications/easy-approach-to-requirements-syntax-ears/)
3. [Specy AI, System Requirements Overview (EARS and the eight deficiencies of unconstrained natural language)](https://specy.ai/reference/home/overview/)
4. [EARS: The Easy Approach to Requirements Syntax Guide (PDF)](https://cdn2.hubspot.net/hubfs/2367473/LeadGen%20Content/EARS%20-%20The%20Easy%20Approach%20to%20Requirements%20Syntax%20Guide.pdf)
5. [An Empirical Investigation of Requirements Engineering and Testing Utilizing EARS Notation in PLC Programs, SN Computer Science (Springer)](https://link.springer.com/article/10.1007/s42979-025-03843-3)
6. [Adopting the EARS Notation to Improve Requirements Engineering, Jama Software (PDF)](https://www.jamasoftware.com/media/2023/12/adopting-the-ears-notation-to-improve-requirements-engineering.pdf)
7. [Easy approach to requirements syntax (EARS), ResearchGate (case study metrics)](https://www.researchgate.net/publication/224079416_Easy_approach_to_requirements_syntax_EARS)
8. [Mavin, A., & Wilkinson, P. (2010). Big Ears (The Return of Easy Approach to Requirements Engineering), RE 2010, ResearchGate](https://www.researchgate.net/publication/224195362_Big_Ears_The_Return_of_Easy_Approach_to_Requirements_Engineering)
9. [Mavin, A., & Wilkinson, P. (2019). Ten Years of EARS, IEEE Software, ResearchGate](https://www.researchgate.net/publication/335535918_Ten_Years_of_EARS)
10. [EARS Notation Explained: Requirements Syntax, CodeMySpec](https://dev.codemyspec.com/blog/ears-notation)
11. [Easy Approach to Requirements Syntax (EARS) (2009), SciSpace (citation record)](https://doi.org/10.1109/re.2009.9)
12. [Benchmarking requirement template systems: comparing appropriateness, usability, and expressiveness, Requirements Engineering (Springer)](https://link.springer.com/article/10.1007/s00766-024-00427-0)
13. [Limitations of EARS, note.com](https://note.com/re_blogroom/n/n8852689d5c13?hl=en-US)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Software engineering and development process › Development methodologies and project management

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/easy-approach-to-requirements-syntax

English original: https://www.edgepedia.org/easy-approach-to-requirements-syntax
