

def append_dialog(self, paragraphs):
    if (len(self.lines) < 2):
        return False
    character = self.lines[0]
    if character.endswith(TWOSPACE):
        return False
    if (character.startswith('@') and (len(character) >= 2)):
        character = self[1:]
    elif (not character.isupper()):
        return False
    if (paragraphs and isinstance(paragraphs[(- 1)], Dialog)):
        dual_match = dual_dialog_re.match(character)
        if dual_match:
            previous = paragraphs.pop()
            dialog = self._create_dialog(dual_match.group(1))
            paragraphs.append(DualDialog(previous, dialog))
            return True
    paragraphs.append(self._create_dialog(character))
    return True

dataset/ETHPy150Open vilcans/screenplain/screenplain/parsers/fountain.py InputParagraph.append_dialog/VarMisuse@76/83 `character`->`self`