Add a scoring function which help the program to determine the correct
text.