I would like to create an extension that selects a sentence where the cursor is (see the text in bold below). The selection sould start from the first character after the previous period and end at the next period.
This is an example to show how the selection will work. I am trying to select this sentence. It is in the middle of a paragraph. The cursor is somewhere within the sentence to be selected.