Can you show us a snippet of your swearwords.txt file?

$read(file,s,word) scans for lines beginning with that word. Your text file needs to have each swear on an individual line.