System fails to recoqnize words in languages that use no spaces between words

I’m learning the Thai language, in which there are no spaces between words. The system sometimes fails to recognize the words correctly or to differentiate between different words. It would therefore be nice if, for example, it were also possible to mark the beginning and end of words yourself. This would also allow longer phrases to be translated and saved. This would make it relatively easy to avoid this problem.

Thank you very much.