[Paper Review] NALABS: Detecting Bad Smells in Natural Language Requirements and Test Specifications
NALABS is a tool that detects bad smells in natural language requirements and test specifications using dictionary-based metrics to identify quality issues such as vagueness, optionality, subjectivity, and weak phrasing. It automates the detection of 12 bad smell indicators through rule-based analysis of textual artifacts, enabling early identification of maintainability and understandability problems in industrial requirement documents.
In large-scale embedded system development, requirement and test specifications are often expressed in natural language. In the context of developing such products, requirement review is performed in many cases manually using these specifications as a basis for quality assurance. Low-quality specifications can have expensive consequences during the requirement engineering process. Especially, if feedback loops during requirement engineering are long, leading to artifacts that are not easily maintainable, are hard to understand, and are inefficient to port to other system variants. We use the idea of smells to specifications expressed in natural language, defining a set of specifications for bad smells. We developed a tool called NALABS (NAtural LAnguage Bad Smells), available on https://github.com/eduardenoiu/NALABS and used for automatically checking specifications. We discuss some of the decisions made for its implementation, and future work.
Motivation & Objective
- To address the lack of automated tools for detecting quality defects in natural language requirements and test specifications.
- To extend existing bad smell detection by incorporating complexity, readability, and structural metrics beyond maintainability.
- To provide a practical, open-source tool for industrial use that supports early detection of specification flaws.
- To validate the applicability of bad smell detection in real industrial requirement documents through tool deployment.
- To support requirement engineers in improving specification quality by identifying problematic linguistic patterns.
Proposed method
- NALABS uses a rule-based approach with predefined keyword lists to detect 12 distinct bad smells in natural language artifacts.
- It processes requirement and test specification documents stored in Excel format, applying linguistic pattern matching to identify problematic phrases.
- The tool implements metrics for vagueness, optionality, subjectivity, weakness, referenceability (NR1 and NR2), readability (ARI index), and complexity (word count and conjunction frequency).
- Each bad smell is scored using a dictionary of keywords, with results visualized through a WPF desktop GUI.
- The tool is built in C# using .NET, with modular layers for preprocessing, metric configuration, and result presentation.
- It is released under the MIT license and hosted on GitHub for open access and industrial adoption.
Experimental results
Research questions
- RQ1How can bad smells in natural language requirements and test specifications be systematically detected using automated, rule-based methods?
- RQ2Which linguistic indicators are most effective in identifying low-quality specifications in industrial embedded systems?
- RQ3To what extent can dictionary-based metrics improve the maintainability and understandability of requirement artifacts?
- RQ4How effective is NALABS in identifying quality defects in real-world industrial requirement documents?
- RQ5What are the key challenges in applying bad smell detection to diverse industrial writing styles and documentation formats?
Key findings
- NALABS successfully detected multiple specification quality issues in real industrial requirement documents from a large manufacturing company in Sweden.
- The tool identified 12 distinct bad smell categories, including vagueness, optionality, subjectivity, and referenceability, using predefined keyword lists.
- The Automated Readability Index (ARI) was used to assess text complexity, with higher scores indicating lower readability and higher cognitive load.
- The inclusion of both NR1 (reference to document) and NR2 (reference to figures/tables) metrics improved detection of dependency-related issues in specifications.
- The tool demonstrated practical utility in industrial settings, with early validation in real projects and active use in ongoing development.
- NALABS is open-source and freely available on GitHub, enabling community contributions and industrial integration.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.