Hacker News new | ask | show | jobs
by oneeyedpigeon 1998 days ago
How would you handle the case in which a sentence ends with an abbreviation?
2 comments

You cannot get everything :) It will recognize this as the end of a sentence. One use case I was thinking of was to automatically make spaces after initials non-breaking, as in "R. P. McMurphy".
Two spaces distinguish sentences.

The abbreviation ends a sentence. It gets two spaces.