What is the right way to split a string into words ? (string doesn\'t contain any spaces or punctuation marks)
For example: \"stringintowords\" -> \"String Into Word
This is basically a variation of a knapsack problem, so what you need is a comprehensive list of words and any of the solutions covered in Wiki.
With fairly-sized dictionary this is going to be insanely resource-intensive and lengthy operation, and you cannot even be sure that this problem will be solved.