Closed grantdjones closed 6 years ago
:+1: This is a very good bug report! I'll look into it.
Fixed. Unit test added. Problem was how sentences were being split, pattern.en
considered the dash to be part of the splitting punctuation.
@grantdjones you can install the latest version with the command pip install nlpre --upgrade
Interesting bug
If you make a sentence that is all caps with a dash, dedash doesn't recognize it -which I see is part of the code, fine
However, if you try to decaptitalize it all first, titlecaps adds a space after the decaptitalized word, which prevents it from being recognized by dedash
This doesn't appear to be a problem as long as the sentence that has the word needing a dedashing isn't in ALL CAPS.
titlecaps.py
I think at the step above, it's adding a space when joining the individual words back together