If I chose a word like YEAR, and it tells me that 0/4 are correct, and every other word contains an E or an A, then there is no possibility of choosing a right answer. However if I then chose the word FAIL, which does contain an A, and im successful, then how could YEAR be 0/4 correct?
I don't know how to describe this but it depends on the location of the character, not the letter itself if that makes sense.
Your example, YEAR and FAIL contain A, but they arent in the same place. It only says something is correct if it is the correct character in the correct spot. Something like MEAN and BEAN would have 3/4 letters correct.
Unless I misunderstood you, hacking is fine, you want to find the correct word in the correct spots. Try to look for words with similar letter composition with the minor changes depending on how many letters weren't correct.