cameron / squirt

Speed read the web.
http://www.squirt.io
Apache License 2.0
1.22k stars 206 forks source link

Treat abbreviations as a single word #123

Open kristoffernolgren opened 10 years ago

kristoffernolgren commented 10 years ago

Stuff like U.K. Is currently treated as two sentences, rather than one word. It would be great when you come across a period to check how many letters there are before the next period, and set a cap at maybe five or so.

dsernst commented 10 years ago

It's not clear to me what you mean by "how many letters there are before the next period, and set a cap at maybe five or so". What's the cap for? Could it be simpler to check if there is a   (space) after the punctuation?

Also see #43 .