Merge document words collector class.