Precomputed values that are expensive to derive and shared across
multiple builder functions within a single analyzeDocument() call.
By computing domains and influenceScore once and threading this
context through helpers we avoid 7–11× redundant detectPolicyDomains()
and calculateInfluenceScore() calls per document.
Precomputed values that are expensive to derive and shared across multiple builder functions within a single
analyzeDocument()call.By computing
domainsandinfluenceScoreonce and threading this context through helpers we avoid 7–11× redundantdetectPolicyDomains()andcalculateInfluenceScore()calls per document.