Is it possible to define my own language and/or grammar rules? I'd like to setup a script to check requirements against our company's internal standards. As a simple example, one simple rule would be to flag use of the word "will" (instead of "shall") in a requirement. For many of these rules, I can simply automate a text search, but there are several rules that deal more with detailed grammar (rather than simply spelling/word choice). I'd like to not have to reinvent the wheel when a grammar checker already seems to be in place. For these, I think the grammar check would be ideal, but I don't know how to define a new rule (or better yet a set of rules) to apply to my requirements. Is it possible to define user grammar rules similar to the user dictionary? |
Re: Custom language or grammar rules Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: Custom language or grammar rules About 4-5 years ago I was tasked to write a DXL script for a large Defence company that could automate the task of seeking out ambiguous non measurable words and phrases within requirements, and tag them as being suspect - the basic concept was to parse each DOORS Object, check that it was a requirement, then search for the ambiguous nasties. It didn't take long before the DXL script started to become bogged down in trying to write rules to cater for context, grammar, semantics etc - users were complaining that whilst the script was correctly picking out ambiguous problems, it was missing some obvious ones, the rules were too literal & strict, and not really providing any better value than a human doing a peer review. What became evident was that as the DXL script grew, it was in fact trying to become like a lexical type compiler similar to that used to compile software languages. The only problem is that the English language is not cast like a software language is. It is hideously complicated with overloaded semantics & syntax, strange tenses, fuzzy grammar rules and so on. To be of any value for the investment of time, the DXL script almost needed to take on Artificial Intelligence type logic. So in the end, the script was somewhat abandoned in favor of using Humanware which proved to be far more reliable when it came to tagging requirements as being genuinely suspect and working out the best course of action. Paul Miller Melbourne, Australia |
Re: Custom language or grammar rules
-Louie |
Re: Custom language or grammar rules llandale - Wed Mar 07 17:33:31 EST 2012
-Louie MSWord has a grammar checker, and whilst it does a decent job, it's possibly a good example of how complex the semantic compiling has to be to get this to work - but it's not entirely useful for parsing requirements because that requires more emphasis on weeding out ambiguity....and I don't know of many engineers who are good at grammar, so they tend to disable that feature!! Paul Miller Melbourne, Australia |