I'm trying to divide long text in small parts, so that every part is at least N characters and ended with some of the stop punctuation marks (? . !). If the part is bigger than N characters we sttoped when the next punctuation mark appear.
For example :
Lets say N = 10
Do you want lime? Yes. I love when I drink tequila.
This sentence should be divided in two parts.
[1] Do you want lime?
[2] Yes. I love when I drink tequila.