def english_pseudo(text): anon = AnonymizerChain(Anonymization('en_US')) anon.add_anonymizers(EmailAnonymizer, NamedEntitiesAnonymizer('en_core_web_lg')) clean_text, patch = anon.pseudonymize(text)