Hi I am using c# libary diff-match-patch. Here I see diff is calculated based on character level, I am looking for diff comparison at word level. Current my below code works at character level
diff_match_patch dmp = new diff_match_patch();
string s1 = "added";
string s2 = "edited";
dmp.diff_main(s1, s2);
This code do character by character comparison I am looking word by word comparison? Can someone please let me know does this library works with word by word? C# or any other backend library can someone please suggest, Any help would be appreciated. Thanks
You can use
diff_cleanupSemantichere's the exmple from api wiki:https://github.com/google/diff-match-patch/wiki/Language:-C%23
Colorized output example: