Skip to main content

Diff Leverage tool

The Diff Leverage tool compares each block's source against the same block in a previous version of the document and carries forward the previous translation when the source is unchanged. It avoids re-translating content that has not changed between versions, and tags each block with its diff status — new, unchanged, modified, or leveraged. A target language is required.

The previous version's source and target texts are supplied programmatically (keyed by block ID); they are not part of the declarative schema. The two schema-visible options control how the source comparison is performed.

IDdiff-leverage
SourceBuilt-in
Categorytranslation
Cardinalitybilingual
Tagstranslation

Parameters

ParameterTypeDefaultDescription
caseSensitivebooleantrueWhether comparison is case-sensitive
fuzzyMatchbooleanfalseEnable fuzzy matching for similar texts

Configure these parameters interactively and copy the flow-step YAML on the Tool Reference.

Examples

Reuse exact matches only

Carry forward translations where the source is identical.

caseSensitive: true

Allow fuzzy leverage

Also reuse translations for closely similar sources.

fuzzyMatch: true
caseSensitive: false

Processing notes

  • Operates on translatable blocks only; non-translatable blocks pass through unchanged.

  • Each block is tagged with a diff-status property; leveraged fuzzy matches also record a similarity score.

Limitations

  • Requires a target language and a previous-version corpus (supplied programmatically); the previous texts are not configurable via the schema.

  • Fuzzy matching uses a fixed internal similarity threshold.

← Back to the Tool Reference