Requirement templates
A requirement template is a fixed sentence pattern for writing a software or system requirement, such as When <trigger>, the <system name> shall <system response> (Mavin, n.d.). The best known is EARS, the Easy Approach to Requirements Syntax, developed at Rolls-Royce and first published in 2009 (Mavin et al., 2009; Mavin, n.d.). In the largest comparison, every template system but one improved all seven quality characteristics measured over free text (Großer et al., 2024b). That benchmark relied mostly on student participants, and research on requirement quality mostly fails to show that such defects harm later development (Großer et al., 2025; Frattini et al., 2023). AI coding tools now write requirements in EARS, while the measured cost of unclear prompts comes from studies of flawed task descriptions rather than of templates (Kiro, 2026; Dobe et al., 2026).
Why constrain requirements
Requirement templates exist because requirements written in ordinary prose tend to be imprecise. The EARS authors start from the observation that stakeholder requirements are usually written in unconstrained natural language, which is imprecise (Mavin et al., 2009). Templates are one kind of controlled natural language: a version of a language whose grammar or vocabulary is deliberately restricted.
Templates are reported to make requirements easier to understand, but converting requirements into them is costly. Converting takes time, substantial prior training and in-depth domain knowledge, so most requirements are still written in unrestricted language (Roßkothen et al., 2026).
Templates such as EARS and boilerplates build on the “shall statement”, in which a named system “shall” do something (Mavin et al., 2009). The first textual requirement template to be called a boilerplate, <system> shall <action>, is a sequence of slots and fixed words of this kind (Tommila & Pakonen, 2013). The international requirements standard ISO/IEC/IEEE 29148 also includes a simple requirement syntax (Großer et al., 2024a).
EARS
EARS is a small set of structural rules meant to fix eight common requirement problems, including ambiguity, complexity and vagueness (Mavin et al., 2009). Its rules let every requirement be written in one of five simple templates.
Origin
EARS came from requirements engineering for jet engines. Alistair Mavin and colleagues developed it at Rolls-Royce while analysing airworthiness regulations for a jet engine control system (Mavin, n.d.). The authors built on the event-condition-action pattern, and cite Simplified Technical English and Attempto Controlled English as earlier constrained languages (Mavin et al., 2009).
Generic syntax and the five patterns
An EARS requirement always puts its clauses in the same order: an optional precondition, an optional trigger, the system name, “shall”, and the system’s response (Mavin et al., 2009; Mavin, n.d.). The guide writes the full form as While <optional pre-condition>, when <optional trigger>, the <system name> shall <system response> (Mavin, n.d.).
Each of the five patterns is marked by a keyword that says when the requirement applies.
| Pattern | Keyword | Applies |
|---|---|---|
| Ubiquitous | none | always |
| State-driven | While | as long as a state remains true |
| Event-driven | When | when a triggering event occurs |
| Optional feature | Where | in products that include the feature |
| Unwanted behaviour | If and Then | to unwanted behaviour |
A ubiquitous requirement reads The <system name> shall <system response>, and an event-driven one When <trigger>, the <system name> shall <system response> (Mavin et al., 2009; Mavin, n.d.).
The method’s author describes EARS as reducing or even eliminating common problems in natural-language requirements. He adds that it needs little training and no specialist tool (Mavin, n.d.). These are the developer’s own descriptions, not measured results.
The original case study Weak evidence: few or small studies support this
EARS’s own evidence is one small case study, run by its authors on aero engine control requirements. Rewritten in EARS, the requirements scored significantly better: five of the eight problem types disappeared, and ambiguity, vagueness and wordiness fell substantially (Mavin et al., 2009). The 36 original requirements became 47, and the average length fell from 36.9 to 25.6 words per requirement (Mavin et al., 2009).
The authors list the limits themselves. The sample was small, it held only high-level safety requirements, and judging vagueness was a matter of personal opinion (Mavin et al., 2009).
Writing and testing with EARS Weak evidence: few or small studies support this
In small studies, people wrote EARS easily but in different ways. In an experiment where ten people rewrote three requirements in EARS, they did so easily; completeness was the most common problem (Ebrahimi Salari et al., 2025). Participants chose different patterns for the same requirement, and the authors call their sample relatively small (Ebrahimi Salari et al., 2025).
EARS requirements can feed test generation. In the same line of work, tests generated from EARS requirements for industrial control programs ran and passed (Ebrahimi Salari et al., 2023). T-EARS, a test language that inherits its structure from EARS, was usable for 64% of 116 safety requirements at a rail vehicle maker (Flemström et al., 2023). Its authors chose EARS as a base because they judged it useful for large sets of requirements across domains (Flemström et al., 2023).
Other template systems
Several other template systems compete with EARS, and they differ in how much structure they impose.
Boilerplates, introduced above, were extended to safety-critical domains by the European CESAR project (2009 to 2012), which uses about 35 of them. It offered several levels, from guided natural language to pattern-based languages with fixed meaning (Tommila & Pakonen, 2013).
MASTeR, a template by Rupp, Adv-EARS, an extension of EARS, and SPIDER are the other systems usually compared with EARS (Großer et al., 2024a).
Tom Gilb developed Planguage to address ambiguous and incomplete non-functional requirements. It uses a rich set of keywords for precise statements of quality attributes and project goals. Its drawback is that the resulting requirements are much bulkier than simple statements (Wiegers, n.d.).
Business rules have their own templates. RuleSpeak, a notation for business rules, was first presented in 1994 and has been used in large projects since the late 1990s (Kuhn, 2014; Ross, 2013). SBVR Structured English, first presented around 2005, is very similar and was probably influenced by it (Kuhn, 2014). It belongs to SBVR, a standard approved in 2007 that defines concepts for business rules rather than a syntax (Ross, 2013).
Do templates improve requirements?
The evidence that templates improve requirements is positive but narrow: one benchmark finds clear gains on quality measures, while studies of people writing with templates are small. Whether the defects templates remove matter for later work is itself unsettled.
The template benchmark Weak evidence: few or small studies support this
One benchmark found that templates beat free text on almost every quality measure. The benchmark set 249 real requirements from five projects beside their variants in five template systems, 1,764 requirements in all (Großer et al., 2024a). Every system except SPIDER improved all seven quality characteristics over free text (Großer et al., 2024b).
No system was a clear winner. MASTeR led on aggregated effect size, a summary of how large the improvements were, but many systems scored similarly (Großer et al., 2025). The authors know of no earlier study that systematically compared several template systems (Großer et al., 2025).
The benchmark’s user part shows a cost. In an experiment with 43 participants, mostly students, templates needed substantial prior training, and writing requirements needed domain knowledge and experience (Großer et al., 2025).
Whether the defects matter
Research mostly fails to link the defects that requirement guidelines warn against to later harm. A review of requirements quality research found it focuses on normative rules and mostly fails to connect quality to its impact on later development (Frattini et al., 2023).
Not every defect that guidelines warn against matters equally. In a controlled experiment with 25 participants deriving domain models from requirements, passive voice had only a minor effect, while ambiguous pronouns had a strong one (Frattini et al., 2024). The authors state that evidence on whether requirements defects impede later work is still lacking (Frattini et al., 2024).
Comparisons among user story templates found no clear winner either. In a quasi-experiment with 41 participants, four user story templates were compared on writing and understanding stories; no template gave the best overall result (Gralha et al., 2021).
Templates and language models
Language models are now used both to convert requirements into templates and to write requirements in template form for coding agents. The link between those formats and the quality of generated code is indirect.
Language models can take over the costly conversion step. In one study, requirements a language model rewrote into the MASTeR template were rated close to human rewrites, especially for short requirements (Roßkothen et al., 2026). The study used 249 source requirements and a survey of specialists at one industry partner (Roßkothen et al., 2026).
AI coding tools have adopted templates for the specifications they write before generating code, a practice described in spec-driven development. Kiro, a coding tool, writes its requirements in EARS, in the form “WHEN [condition/event] THE SYSTEM SHALL [expected behavior]” (Kiro, 2026). Its documentation claims each requirement can be translated directly into test cases (Kiro, 2026). Kiro’s engineers add that each EARS clause maps to a logical implication, so requirements can be checked automatically (Dobe et al., 2026). GitHub’s Spec Kit uses the Given/When/Then form of behaviour-driven development for acceptance scenarios (GitHub, n.d.i).
The case for these formats rests on studies of flawed prompts. Minor flaws in a task description can sharply lower code generation performance, and contradictory descriptions cause many logical errors (Larbi et al., 2025). Kiro’s engineers cite drops of 20 to 40% in Pass@1, the share of tasks solved by a model’s first attempt. Those experiments turned clear prompts into ambiguous, incomplete or contradictory ones; they did not compare templates with free text (Dobe et al., 2026).
Further reading
- Mavin and colleagues (2009), “Easy Approach to Requirements Syntax (EARS)”: the original paper, with the rules, the five templates and the Rolls-Royce case study and its limits (Mavin et al., 2009).
- Mavin, “EARS: Easy Approach to Requirements Syntax”: the author’s guide to the patterns, with the form of each (Mavin, n.d.).
- Großer and colleagues (2024), “Benchmarking requirement template systems”: the comparison of EARS, MASTeR, Adv-EARS, boilerplates and SPIDER against free text (Großer et al., 2024b).
- Frattini and colleagues (2023), “Requirements quality research”: a review of what is known about requirement quality and its effect on later work (Frattini et al., 2023).
- Tommila and Pakonen (2013), “Controlled natural language requirements in the design and analysis of safety critical I&C systems”: a report on boilerplates and CESAR (Tommila & Pakonen, 2013).
- Roßkothen and colleagues (2026), “On converting natural language requirements into semi-formal templates using LLMs”: language models rewriting requirements into MASTeR (Roßkothen et al., 2026).
First published .
Known gaps
What this article cannot tell you yet.
- The template benchmark comes from one research group, and its full journal text, including how quality was judged and who rewrote the requirements, was available only as an abstract. No independent replication of it was found.
- No controlled study comparing EARS with free text on reader comprehension or defect rates was found, and no study reports EARS having no effect or doing harm.
- No study compares EARS or Given/When/Then requirements with free text as input to code generation by language models. A 2024 INCOSE paper on language models and EARS could not be read.
- A primary source for the MASTeR template (Rupp) was not found, so its structure is not described here. Adv-EARS and SPIDER were not researched beyond their names.
- The 2016 EARS lessons-learned paper and the 2018 EARS workshop papers could not be read, so industrial experience with EARS rests mainly on its author’s statements.
References
- Solid source
- Rated highly trustworthy by the research, and every passage taken from it was found in it.
- Weak source
- Rated low, or a passage taken from it was not found in it.
- Medium trust
- Rated medium by the research.
- Not checked
- Rated high, but its passages could not all be checked against it.
Show all 20 references
- Dobe, O., Arora, J., Zetzsche, S., Labai, N., & Delmas, R. (2026). Requirements analysis: catching requirement bugs before they become code. Kiro blog. https://kiro.dev/blog/deep-spec-analysis/ Medium trust Vendor page, read in large part.
- Ebrahimi Salari, M., Enoiu, E. P., Afzal, W., & Seceleanu, C. (2023). An experiment in requirements engineering and testing using EARS notation for PLC systems. Mälardalen University. https://www.ipr.mdu.se/pdf_publications/6673.pdf Medium trust Peer-reviewed, read in full.
- Ebrahimi Salari, M., Enoiu, E. P., Afzal, W., & Seceleanu, C. (2025). An empirical investigation of requirements engineering and testing utilizing EARS notation in PLC programs. SN Computer Science, 6:314. https://www.es.mdu.se/pdf_publications/7171.pdf Medium trust Peer-reviewed, read in full.
- Flemström, D., Jonsson, H., Enoiu, E. P., & Afzal, W. (2023). Industrial scale passive testing with T-EARS. Mälardalen University, conference paper. https://www.ipr.mdh.se/pdf_publications/6100.pdf Solid source Read in full.
- Frattini, J., Montgomery, L., Fischbach, J., Mendez, D., Fucci, D., & Unterkalmsteiner, M. (2023). Requirements quality research: a harmonized theory, evaluation, and roadmap. Requirements Engineering, 28(4) (arXiv:2309.10355). https://arxiv.org/abs/2309.10355 Medium trust Peer-reviewed, abstract only.
- Frattini, J., Fucci, D., Torkar, R., Montgomery, L., Unterkalmsteiner, M., Fischbach, J., et al. (2024). Applying bayesian data analysis for causal inference about requirements quality: a controlled experiment. Empirical Software Engineering. https://link.springer.com/article/10.1007/s10664-024-10582-1 Solid source Peer-reviewed, abstract only.
- Gralha, C., Pereira, R., Goulão, M., & Araújo, J. (2021). On the impact of using different templates on creating and understanding user stories. 29th IEEE International Requirements Engineering Conference (RE 2021), pp. 209-220. https://novaresearch.unl.pt/en/publications/on-the-impact-of-using-different-templates-on-creating-and-unders/ Medium trust Peer-reviewed, abstract only.
- Großer, K., Ahmadian, A. S., Rukavitsyna, M., Ramadan, Q., & Jürjens, J. (2024b). Benchmarking requirement template systems: comparing appropriateness, usability, and expressiveness. Requirements Engineering, 29(4), 481-522. https://link.springer.com/article/10.1007/s00766-024-00427-0 Solid source Peer-reviewed, abstract only.
- Großer, K., Rukavitsyna, M., & Jürjens, J. (2024a). A comparative evaluation of requirement template systems (summary). Software Engineering 2024, Lecture Notes in Informatics P-343, Gesellschaft für Informatik, pp. 47-48. https://dl.gi.de/bitstreams/3d2a4a0c-99ce-4e69-b1c3-91e62962d6a6/download Medium trust Peer-reviewed, read in full.
- Großer, K., Ahmadian, A. S., Rukavitsyna, M., Ramadan, Q., & Jürjens, J. (2025). Benchmarking requirement template systems (summary). Software Engineering 2025, Lecture Notes in Informatics P-360, Gesellschaft für Informatik, pp. 79-80. https://dl.gi.de/bitstreams/d27ff852-f0f1-419e-bd91-667930f6d1e5/download Medium trust Read in full.
- Kiro (2026). Feature specs. Kiro documentation. https://kiro.dev/docs/specs/feature-specs/ Solid source Documentation, read in large part.
- Kuhn, T. (2014). A survey and classification of controlled natural languages. Computational Linguistics, 40(1), 121-170. https://arxiv.org/pdf/1507.01701 Solid source Peer-reviewed, read in full.
- Larbi, M., Akli, A., Papadakis, M., Bouyousfi, R., Cordy, M., Sarro, F., et al. (2025). When prompts go wrong: evaluating code model robustness to ambiguous, contradictory, and incomplete task descriptions. arXiv:2507.20439. https://arxiv.org/abs/2507.20439 Solid source Preprint, abstract only.
- Mavin, A., Wilkinson, P., Harwood, A., & Novak, M. (2009). Easy approach to requirements syntax (EARS). 17th IEEE International Requirements Engineering Conference (RE 09), pp. 317-322. https://ccy05327.github.io/SDD/08-PDF/Easy%20Approach%20to%20Requirements%20Syntax%20(EARS).pdf Medium trust Peer-reviewed, read in full.
- Mavin, A. (n.d.). EARS: Easy Approach to Requirements Syntax, official guide. alistairmavin.com. https://alistairmavin.com/ears/ Weak source Documentation, read in full.
- Ross, R. G. (2013). The RuleSpeak business rule notation. Business Rules Journal, Business Rules Community. https://www.brcommunity.com/articles.php?id=b286b Medium trust Read in full.
- Roßkothen, J., Fuchß, D., Erdösi, F., Floruß, M., Keim, J., & Hey, T. (2026). On converting natural language requirements into semi-formal templates using LLMs. Karlsruhe Institute of Technology and Vector Informatik, IEEE. https://publikationen.bibliothek.kit.edu/1000194588/183886163 Medium trust Peer-reviewed, read in full.
- GitHub (n.d.i). spec-template.md, Spec Kit templates. GitHub, github/spec-kit repository. https://raw.githubusercontent.com/github/spec-kit/main/templates/spec-template.md Solid source Documentation, read in large part.
- Tommila, T., & Pakonen, A. (2013). Controlled natural language requirements in the design and analysis of safety critical I&C systems. VTT Technical Research Centre of Finland, report VTT-R-01067-14. https://sarjaweb.vtt.fi/julkaisut/muut/2014/VTT-R-01067-14.pdf Medium trust Read in full.
- Wiegers, K. (n.d.). Specifying quality requirements with Planguage. Modern Analyst. https://www.modernanalyst.com/Resources/Articles/tabid/115/ID/2926/Specifying-Quality-Requirements-With-Planguage.aspx Medium trust Blog post, read in full.