Gtk.TextIter.prototype.ends_sentence

function ends_sentence():Boolean {
    // Gjs wrapper for gtk_text_iter_ends_sentence()
}

Determines whether iter ends a sentence. Sentence boundaries are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango text boundary algorithms).

Returns

true if iter is at the end of a sentence.