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

Won’t that mess up titles like Dr. Livingstone and Mr. President?

Splitting text into sentences is actually really hard.



> Splitting text into sentences is actually really hard.

It would be a lot less hard if we were able to unambiguously tell the computer whether a period ends a sentence. I wonder how we could possibly do that...

(Less sarcastically: a lot of Unix programs - Emacs, vim, troff, etc. - solve this problem by defaulting to double-spaced sentences, thus resolving the ambiguity. Kinda odd that this ain't the Tex approach; there's already precedent by using doubled-up ``backquotes'' and ``single quotes'' to produce “smart double quotes”, and lone `backquotes' and `single quotes' similarly become ‘smart single quotes’.)


Yup:

  Prof.\@ Crumb
...is the behavior suppressor.


I usually force a narrow space after titles: Dr.\,Livingstone




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

Search: