If you are working with a dataset that has a mix of different languages, is there a way to detect English? You can use spacy_langdetect to detect whether a text in English.
Below is a function to detect English. It just takes a few lines of code. The function will return True if the language is English.
Try to detect any text this code snippet. Here is the doc.