Splits words that are not recognized by pyenchant (spell checker) into largest possible compounds.
pip install compound-word-splitter
import splitter
splitter.split('artfactory')
returns
['art', 'factory']
If the word cannot be split into compounds pyenchant recognizes as words, the splitter returns an empty string.