Gtk.TextIter.prototype.inside_word

function inside_word():Boolean {
    // Gjs wrapper for gtk_text_iter_inside_word()
}

Determines whether iter is inside a natural-language word (as opposed to say inside some whitespace). 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 inside a word