Gtk.TextIter.prototype.ends_word

function ends_word():Boolean {
    // Gjs wrapper for gtk_text_iter_ends_word()
}

Determines whether iter ends a natural-language word. Word breaks are determined by Pango and should be correct for nearly any language (if not, the correct fix would be to the Pango word break algorithms).

Returns

true if iter is at the end of a word