import re


def fix_noncapitalized_prefix(summary_content):
    """
    Merge noncapitalized texts with previous sentences

    :param summary_content: summary text
    """
    # merge short sentences
    ix = 0
    fixed_content = []
    while ix < len(summary_content):
        sentence = summary_content[ix]

        if fixed_content and re.match("^[ ]?[a-z]", sentence):
            fixed_content[-1] = fixed_content[-1] + " " + sentence
            ix += 1
        else:
            fixed_content.append(sentence)
            ix += 1

    return fixed_content