Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have no issues with people exercising their personal choices when it comes to the number of spaces after a period. However, I found it to be quite annoying when they began complaining about my preference for a single space and asserting that their method of using two spaces is more correct than mine. Ultimately, I've come to the realization that this is more akin to a matter of personal belief rather than a technicality. It seems nearly impossible to bridge the gap and find a consensus on this issue.


My issue with single-space is that it turns programmatically parsing out sentences from "pretty simple regex on terminating punctuation + (two spaces OR newline)" to "tangled mess of heuristics and corner-cases".

Obviously humans can figure this out easily, so I don't really notice or care if I'm reading something with single-spaced sentences, and it's pretty rare that I need to parse sentences... but the moment that need does arise, I'm gonna end up judging the hell out of that "personal choice" - to say the least.


What is a use-case for parsing out sentences? I don't think I've ever had to do that. So curious when do you need to parse out sentences?


While I cannot comment on the specific use cases mentioned by the previous person, one example where parsing out sentences can be useful is in the context of Computer Aided Translation (CAT) tools, also known as translation memory. As a software engineer in the field of localization, I encounter this requirement on a daily basis.

In CAT tools, there are well-established heuristics that handle the majority of cases, making sentence parsing relatively problem-free. For the remaining cases, reputable CAT solutions provide features that allow translators to merge or split segments, thus accommodating various sentence structures. As a result, this issue is generally not a significant concern.

It is unreasonable to expect or demand that individuals discard their writing styles solely for the purpose of text processing, especially when both styles are equally prevalent. The blame, if any, lies with the limitations of the language itself for not providing clearer guidelines in this regard.


Most common for me would be keyboard navigation in text editors. Emacs, for example, assumes double-spaced sentences by default when using M-a / M-e / M-k / C-x DEL for sentence-based navigation/editing: https://www.gnu.org/software/emacs/manual/html_node/emacs/Se...

Being able to count sentences per paragraph, words per sentence, etc. is also handy for maintaining good writing style. Excessively-long sentences or paragraphs can be trickier for folks to read; having solid metrics around sentence/paragraph length helps identify candidates for simplification.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: