Detecting Contradictions across Versions of Technical Specifications

Authors

  • Paca Tejada Department of Computer Science and Engineering, University at Buffalo, Buffalo, NY, USA. Author
  • Jhalak Guha Department of Computer Science, University of New Hampshire, Durham, NH, USA. Author

Keywords:

contradiction detection, technical specifications, requirements evolution, normative statements, version alignment, constraint satisfiability

Abstract

Technical specifications are normative, configuration-controlled documents whose meaning changes as clauses, numerical bounds, scope statements, and terminology are revised across versions. A contradiction across versions occurs when a later specification asserts a requirement that cannot jointly hold with an earlier requirement under a shared operating condition, scope, or modality. Existing requirement-quality and traceability techniques are strong at detecting ambiguous phrasing, recovering links, and checking conformance within a single specification, but they do not provide a precise, version-aware account of contradiction. This article develops a methodological framework for detecting such contradictions. It represents each normative statement as a canonical tuple containing the regulated entity and attribute, predicate or constraint, modality, condition set, and version identifier. Statements are normalized, aligned across versions, and tested for logical and numeric incompatibility under condition compatibility. Candidate conflicts form a contradiction graph whose connected components expose clusters rather than isolated pairs. A thresholded decision rule aggregates alignment evidence and incompatibility evidence for analyst review. The central insight is that cross-version contradiction detection requires aligning meaning before comparing wording, separating scope and modality from propositional conflict, and treating numeric bounds and logical constraints as distinct but combinable evidence. The framework is intended for specification assurance, standards maintenance, and safety-related document control, where missed contradictions and excessive false alerts both carry substantive cost.

References

1. Berry, D. M., & Kamsties, E. (2004). Ambiguity in requirements specification. In J. C. S. do Prado Leite & J. H. Doorn (Eds.), Perspectives on software requirements (pp. 7–26). Springer.

2. Kamsties, E. (2005). Understanding ambiguity in requirements engineering. In A. Aurum & C. Wohlin (Eds.), Engineering and managing software requirements (pp. 159–184). Springer.

3. Chantree, F., Nuseibeh, B., de Roeck, A., & Willis, A. (2006). Identifying nocuous ambiguities in natural language requirements. In Proceedings of the 14th IEEE International Requirements Engineering Conference (pp. 59–68). IEEE.

4. Kiyavitskaya, N., Zeni, N., Mich, L., & Berry, D. M. (2008). Requirements for tools for ambiguity identification and measurement in natural language requirements specifications. Requirements Engineering, 13(3), 207–239.

5. Gervasi, V., & Zowghi, D. (2005). Reasoning about inconsistencies in natural language requirements. ACM Transactions on Software Engineering and Methodology, 14(3), 277–330.

6. Zowghi, D., & Gervasi, V. (2003). On the interplay between consistency, completeness, and correctness in requirements evolution. Information and Software Technology, 45(14), 993–1009.

7. Spanoudakis, G., & Zisman, A. (2001). Inconsistency management in software engineering: Survey and open research issues. In S. K. Chang (Ed.), Handbook of software engineering and knowledge engineering (pp. 329–380). World Scientific.

8. Nuseibeh, B., Easterbrook, S., & Russo, A. (2000). Leveraging inconsistency in software development. Computer, 33(4), 24–29.

9. Cleland-Huang, J., Gotel, O. C. Z., Hayes, J. H., Mäder, P., & Zisman, A. (2014). Software traceability: Trends and future directions. In Proceedings of the on Future of Software Engineering (pp. 55–69). ACM.

10. Falessi, D., Cantone, G., & Canfora, G. (2013). Empirical principles and an industrial case study in retrieving equivalent requirements via natural language processing techniques. IEEE Transactions on Software Engineering, 39(1), 18–44.

11. Tjong, S. F., & Berry, D. M. (2013). The design of SREE—a prototype potential ambiguity finder for requirements specifications and lessons learned. In Proceedings of the 19th International Working Conference on Requirements Engineering: Foundation for Software Quality (pp. 80–95). Springer.

12. Rosadini, B., Ferrari, A., Gnesi, S., & Fantechi, A. (2018). Using NLP to detect requirements defects: An industrial experience in the railway domain. In Proceedings of the 24th International Working Conference on Requirements Engineering: Foundation for Software Quality (pp. 344–360). Springer.

13. Arora, C., Sabetzadeh, M., Briand, L., & Zimmer, F. (2015). Automated checking of conformance to requirements templates using natural language processing. IEEE Transactions on Software Engineering, 41(10), 944–968.

14. Ghosh, S., Elenius, D., Li, W., Lincoln, P., Shankar, N., & Steiner, W. (2016). ARSENAL: Automatic requirements specification extraction from natural language. In Proceedings of the 8th NASA Formal Methods Symposium (pp. 41–46). Springer.

15. Huffman Hayes, J., Dekhtyar, A., & Sundaram, S. K. (2006). Advancing candidate link generation for requirements tracing: The study of methods. IEEE Transactions on Software Engineering, 32(1), 4–19.

16. Cleland-Huang, J., Settimi, R., Zou, X., & Solc, P. (2007). Automated classification of non-functional requirements. Requirements Engineering, 12(2), 103–120.

17. Mahmoud, A., & Niu, N. (2011). A semantic relatedness approach for traceability link recovery. In 2011 IEEE 19th International Conference on Program Comprehension (pp. 121–130). IEEE.

18. Ferrari, A., Gnesi, S., & Tolomei, G. (2017). Detecting requirements defects with NLP: A systematic literature review. In 2017 IEEE 25th International Requirements Engineering Conference Workshops (pp. 283–290). IEEE.

Downloads

Published

2023-09-29