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