Lee, as usual this is great work.
Rather than typing them into prompt I would rather provide a list in the code.
IE: AB, ABD, ABQ all merge into A.
Can you have it look inside blocks as well?
I only know plain lisp so this is all french to me or I would try to modify.