Say I have a string : "She has an excellent command on the topicsOnly problem is clarity in EnglishHer confidence is very good in RUSSian and H2O"
If observed properly, this string doesnt have any punctuation. I am primarily focusing on putting the periods. "She has an excellent command on the topics. Only problem is clarity in English. Her confidence is very good in RUSSian and H2O" I can use a regex and findall to get a list of relevant words. I tried using something like this, but its not giving the desired result. I would like a computationally efficient code.
import re
text = "She has an excelllent command on the topicsOnly problem is clarity in EnglishHer confidence is very good in RUSSian and H2O"
r = re.findall('([A-Z][a-z]+)|([a-zA-Z0-9]+)|([A-Z][a-z]+)', text)
re.sub(r'([a-z])([A-Z])', r'\1. \2', text)