I am trying to use langdetect to drop all the languages which are not english in my text.
def det(x): try: language = detect(x) except: