Extract function for getting the score for a letter