How does this tool actually detect sentences?
A period, question mark, exclamation point, or ellipsis ends a sentence when it is followed by a space or the end of the text. A period does not end a sentence inside a decimal number or domain name (3.14, example.com), after a title or abbreviation such as Dr., Mr., e.g., or i.e., after an initial (J. K. Rowling), or after a list number at the start of a line. Abbreviations such as etc. or Inc. end a sentence only when the next word is capitalized. It is rule-based, not a language model, so unusual abbreviations can still be miscounted.