textlint-rule / sentence-splitter

Split {Japanese, English} text into sentences.
https://sentence-splitter.netlify.app/
MIT License
117 stars 14 forks source link

U.S.A. as sentence border does not split correctly. #21

Open Benjamin-Lee opened 4 years ago

Benjamin-Lee commented 4 years ago

Input: I was born in the U.S.A. My name is Benjamin D. Lee. Desired output: ["I was born in the U.S.A.", "My name is Benjamin D. Lee."] Actual output: I was born in the U.S.A. My name is Benjamin D. Lee.

Note that this works with U.S. but not U.S.A..

danielweck commented 4 years ago

I wonder whether this lib does a better job, overall (probably not for Japanese though):

https://github.com/Tessmore/sbd