A quick hack to require 100% matching in the first 50 words of the NOTES field in Find and Merge Duplicates.py is:
change
> def MergeQualityNOTE(rec1,rec2) :
> # if either has html, must match it all, if one not, no match
> if not(rec1.notes) :
> if rec2.notes : return -1.
> if rec1.htmltext != rec2.htmltext : return -1.
> return 100.
> elif not(rec2.notes) :
> return -1.
>
> # exact match
> if rec1.notes == rec2.notes : return 100.
to
> def MergeQualityNOTE(rec1,rec2) :
> # if either has html, must match it all, if one not, no match
> if not(rec1.notes) :
> if rec2.notes : return -1.
> if rec1.htmltext != rec2.htmltext : return -1.
> return 100.
> elif not(rec2.notes) :
> return -1.
>
> # exact match
> if rec1.notes == rec2.notes : return 100.
> return -1.
(The only change is adding the last line "return -1.") Save the modified script in your user scripts folder.
In looking at this code, I noticed that it contains a custom function WordMatchQuality(), when it probably would have been a better idea to use the built-in difflib module, available in Python since version 2.1.
=Jim
> --
> You received this message because you are subscribed to the Google Groups "GEDitCOM II Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
geditcom-ii-discu...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>