Simple text sentence splitting and counting. Supports atleast english, german and dutch, possibly more. If you find it works well enough for your language, please let me know!
MIT License
78
stars
23
forks
source link
It won't split two sentences with the first one ends with a capital letter like names, countries and ... #5
In the below paragraph, the first line ends with a word with a capital letter that is not a title or abbr. But the Sentence class could not split them. I think it is related to the function which detects abbreviation but in this case, it does not split them, even though it's not an abbreviation.
While the mountain climbers are refueling on energy bars, we enjoy strong coffee and chocolate cake at Le 3842, one of the highest restaurants in Europe. The Aiguille du Midi also has one of the world’s highest museums.
In the below paragraph, the first line ends with a word with a capital letter that is not a title or abbr. But the
Sentence
class could not split them. I think it is related to the function which detects abbreviation but in this case, it does not split them, even though it's not an abbreviation.While the mountain climbers are refueling on energy bars, we enjoy strong coffee and chocolate cake at Le 3842, one of the highest restaurants in Europe. The Aiguille du Midi also has one of the world’s highest museums.