This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.
TokenFusion
Defined in: packages/engine/src/normalizer/NormalizerRule.ts:310
Record of a token fusion event performed by the normalizer.
When a rule merges multiple source tokens into fewer replacement tokens, the normalizer fires a fusion callback with this record. The playground uses these records to render the fusion detail table showing exactly which tokens were merged and by which rule.
Example
Section titled “Example”// "to" "the" "power" "of" fused into CARET "^"const fusion: TokenFusion = { rule: "phrase:to the power of", sourceTokens: [toToken, theToken, powerToken, ofToken], fusedToken: caretToken,};Properties
Section titled “Properties”fusedToken
Section titled “fusedToken”fusedToken: Token;Defined in: packages/engine/src/normalizer/NormalizerRule.ts:318
The resulting fused token with its new type and combined value
rule: string;Defined in: packages/engine/src/normalizer/NormalizerRule.ts:312
The name of the rule that triggered this fusion (e.g., “phrase:to the power of”)
sourceTokens
Section titled “sourceTokens”sourceTokens: Token[];Defined in: packages/engine/src/normalizer/NormalizerRule.ts:315
The original tokens before fusion, always ≥ 2 tokens