I would like to know if there is a way to check if a given string may contain English word and returns the non-English substrings. What I've tried so far is to load an English dictionary to a file and check the existence of an English word in my strings by comparing my input with the words in the dictionary file, however this approach is so complicated, I would like to know if there's a better way to do it especially in terms of performance. Example :
"here are english words this hdksn is not" => true, hdksn is not in english
true means here that is contains at least one english word.
Ps : my strings are actually mysql rows and i'm working with Java