Are there any existing libraries that do word-diffing? Like e.g. GitHub - kpdecker/jsdiff: A javascript text differencing implementation. does.
Currently I’m just manually tokenizing the two input texts (into sequences of alphanumerics vs non-alnum) and using Myers.Diff getGroupedVectorDiff. It seems to work, but I’m sure there are edge cases I haven’t considered.