1
$\begingroup$

I'm stuck on this problem and would love some input.

I have mulitple words such as getExtention, getPath, someWord or someword and i want to separate each concatinated words into its own words such as:

getExtention ---> [get][Extention].

someword --> [some][word].

The concatenated words can also be in all small letters.

Do you guys have any ideas how I could achieve that?

$\endgroup$
3
$\begingroup$

Can use a package that relies on a spellchecker to find the best way to split, like this one: https://pypi.org/project/compound-word-splitter/

$\endgroup$
1
  • $\begingroup$ Perfect, thanks for the tip $\endgroup$ Jun 10 at 11:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.