code: def get_word_before_cursor(self, WORD=False):
          
          if self.text_before_cursor[-1:].isspace():
              return ''
          else:
              return self.text_before_cursor[self.find_start_of_previous_word(WORD=WORD):]
docs: Give the word before the cursor.
          If we have whitespace before the cursor this returns an empty string.