def find_previous_word_beginning(self, count=1, WORD=False):
        """
        Return an index relative to the cursor position pointing to the start
        of the previous word. Return `None` if nothing was found.
        """
        if count < 0:
            return self.find_next_word_beginning(count=-count, WORD=WORD)

        regex = _FIND_BIG_WORD_RE if WORD else _FIND_WORD_RE
        iterator = regex.finditer(self.text_before_cursor[::-1])

        try:
            for i, match in enumerate(iterator):
                if i + 1 == count:
                    return - match.end(1)
        except StopIteration:
            pass
def find_previous_word_beginning ( self , count = 1 , WORD = False ) : if count < 0 : return self . find_next_word_beginning ( count = - count , WORD = WORD ) regex = _FIND_BIG_WORD_RE if WORD else _FIND_WORD_RE iterator = regex . finditer ( self . text_before_cursor [ : : - 1 ] ) try : for i , match in enumerate ( iterator ) : if i + 1 == count : return - match . end ( 1 ) except StopIteration : pass
Return an index relative to the cursor position pointing to the start
        of the previous word. Return `None` if nothing was found.