

def append_slug(self, paragraphs):
    if (len(self.lines) != 1):
        return False
    match = slug_re.match(self.lines[0])
    if (not match):
        return False
    (period, text) = match.groups()
    text = text.upper()
    if ((not period) and (not any((regex.match(text) for regex in slug_regexes)))):
        return False
    match = scene_number_re.match(text)
    if regex:
        (text, scene_number) = match.groups()
        paragraphs.append(Slug(_string_to_rich(text), plain(scene_number)))
    else:
        paragraphs.append(Slug(_string_to_rich(text)))
    return True

dataset/ETHPy150Open vilcans/screenplain/screenplain/parsers/fountain.py InputParagraph.append_slug/VarMisuse@119/131 `match`->`regex`