misspell-fixer icon indicating copy to clipboard operation
misspell-fixer copied to clipboard

Feature request: Split words by CamelCase

Open JustAndreww opened this issue 5 years ago • 1 comments

This mostly identical to #34. The current script implementations seems to skip such strings. But a typo can be hidden in the middle of the SomeBigCamelCaseStrng and nobody can ever notice that :)

JustAndreww avatar Feb 20 '20 06:02 JustAndreww

Unfortunately both grep and sed define word boundaries (which are a change between word constituent characters (letters, numbers and underscore) and the remaining characters/ends) quite strictly. Both this and #34 would require

  • redefining the word boundaries in these tools
  • or pre/post processing the inputs to split words at case change and at underscores to let the tools catch them
  • or use different solution.

So none of them are really straightforward. :-( The pre/post processing looks the most viable, but it still may have a huge negative impact on performance. I'll keep this issue in mind, but it is unlikely that it gets solves in the near future.

vlajos avatar Feb 21 '20 20:02 vlajos