The program checks a text document for curse words