There is a random string that the user has inserted (inserted or received from the file). There is a large database (of English words / expressions) how best to make searches for these expressions / words in the string . It occurs to me to create this work in alphabetical order with this base, i.e. if it is an extension then only e . Perhaps there are already some libraries that would not reinvent the wheel?
Ps naturally the point is to find these substrings and their translation is as productive as possible.