node-unfluff icon indicating copy to clipboard operation
node-unfluff copied to clipboard

Purpose of removing periods immediately followed by letters?

Open knod opened this issue 9 years ago • 0 comments

This line has been giving me unexpected issues and I'm thinking of removing it: https://github.com/ageitgey/node-unfluff/blob/master/src/formatter.coffee#L71 (txt = txt.replace(/(\w+\.)([A-Z]+)/, '$1 $2')). What is its purpose? What side-effects might I get from removing it?

The issue it gives me right now is with initialisms, like C.R.T. - they get separated into words and I get "C.", "R.", and "T.". Not sure how else to solve this issue.

knod avatar Dec 23 '16 03:12 knod