def without_extra_phrases(self):
<EOL>name = re.sub(r'<STR_LIT>', '<STR_LIT>', self.name)<EOL>name = re.sub(r'<STR_LIT>', '<STR_LIT>', name)<EOL>name = re.sub(r'<STR_LIT>', '<STR_LIT>', name)<EOL>name = re.sub(r'<STR_LIT>', '<STR_LIT>', name)<EOL>if "<STR_LIT:->" in name:<EOL><INDENT>hyphen_parts = name.rsplit("<STR_LIT:->", <NUM_LIT:1>)<EOL>if len(hyphen_parts[<NUM_LIT:1>]) < len(hyphen_parts[<NUM_LIT:0>]) and re.search(r'<STR_LIT>', hyphen_parts[<NUM_LIT:0>]) and not re.match(r'<STR_LIT>', hyphen_parts[<NUM_LIT:1>]):<EOL><INDENT>name = hyphen_parts[<NUM_LIT:0>].strip()<EOL><DEDENT><DEDENT>return name<EOL>
Removes parenthethical and dashed phrases