#NEWLINE# def add_synonym( self , synonym , headword_index ) : #NEWLINE# #INDENT# if ( headword_index < len ( entry ) ) : #NEWLINE# #INDENT# entry = self . entries [ headword_index ] #NEWLINE# entry . add_synonym ( synonym ) #NEWLINE# self . has_synonyms = True