This algorithm is designed to take in a word from the user, check if that word is contained in a file, and if it isn’t contained in the file it will add it to it. (If it is in the file the word will be rejected). It accomplishes this task┬ábut accepting the input and then using if statements to run some tests on the word. It uses the pickle library to interact with the external file. First, the word is added to an array and then the word is sent to the file when the method is quit.