#167·jsdiff

How to minimize the number of insertions?

Author: nachocabCreated Feb 15, 2017Updated Dec 22, 2023
Labelsmajor-new-feature

image

The example above showcases what I'm trying to do: the first line has two insertions ("very", "correct and"), while the second line only has one insertion ("and correct"). Is there a parameter I could use to penalize gap opening? That way, the first example would have a single insertion "very and correct"