The invention relates to the technical field of
computer software demand analysis and
automation, and discloses an
automatic writing method and
system oriented to
demand analysis, and the method comprises the steps: constructing
a domain knowledge graph containing a component
mutual exclusion and dependency relationship, and deducing and generating a component
compatibility matrix; converting the unstructured demand text into structured features by using a
natural language processing algorithm; generating a virtual configuration
list in combination with the atlas, and performing conflict detection based on a
compatibility matrix and a supervision protocol; when violation is detected, the topological
connectivity is quantified by calculating the sum of in-degree and out-degree of the component in the map, and the component is retrieved and replaced according to the topological
connectivity for automatic correction; monitoring a change event, calculating an influence domain by using a weight conduction
algorithm, and triggering local re-
verification; and finally, generating a descriptive text, and executing consistency check by reversely extracting numerical values. According to the method, the configuration
verification efficiency and the correction stability are improved through matrix operation and topology analysis, and the accuracy of the
demand analysis document is ensured.