How can "chest" and "chin" be anagrams of the same thing? An anagram is a rearrangement of the original letters, not just a list of the possible words that can be made.
Based on your "output" it appears that your "input" contained, at least, the letters:
c e h i n o p p r s t y
FWIW, to the best of my knowledge there are no single words containing exactly those letters, although the internet anagram server found 42 2-word anagrams of those letters.