from __future__ import print_function from nltk.stem import * from sys import argv import enchant d = enchant.Dict("en_US") with open(argv[1]) as f: for line in f: word = line.split()[0] if not(d.check(word)): print(word)