textlint-rule / sentence-splitter

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

Support for changing language settings. #40

Closed Thyrst closed 10 months ago

Thyrst commented 10 months ago

I would like to be able to separate sentences in other languages than English and I need to use abbreviations from those languages for that. I would like to be able to define my own Language object for that and use it in AbbrMarker.

I did draft of those changes. The only issue is that I'm not sure how to use exports in package.json to expose the Language interface and the English object. If you guys are cool with those changes and can point me in the right direction on how to use the exports (I had tough time with that :D), I would be happy to change the PR to get it merged :)

azu commented 10 months ago

fixed in https://github.com/textlint-rule/sentence-splitter/releases/tag/v4.3.0

Thanks