Gets the word that is being completed up to the position of the insert mark.
a string containing the current word