Integrated with term frequency robocoder
Fix the output to remove duplicate codes