Getting closer with the algorithm to do dcoref replacements.