A specification is a contract document
Before automating specification writing it is worth being clear what a specification is, because treating it as descriptive prose is how practices get into trouble.
The drawings show quantity, location and relationship. The specification states quality: what the materials are, what standards they must meet, how the work is executed, and what the contractor must submit to prove it. Together they form the contract documents, and a contractor prices and builds from them.
That has a consequence people underestimate. Every sentence in a specification is potentially an obligation someone is paid to fulfil, and an ambiguity is not a stylistic flaw. It is a claim waiting to happen, or a cost the client pays twice.
Most offices work in a structured format, commonly MasterFormat in North America, which organises the work into divisions and sections with a consistent three-part structure: general, products, execution. That structure is what makes the document navigable to a contractor who needs one section at three in the afternoon.
And specifications come in kinds. A prescriptive specification names the product. A performance specification states the outcome the product must achieve and leaves the choice open. Which one you use is a design and risk decision, because a performance spec transfers selection responsibility to the contractor and a prescriptive spec keeps it with you.
None of that is a formatting concern. It is why a generated specification section cannot simply be adopted, and the next step is about what does work.

