def _create_combined_words(words, startindex):
    """
    Helper for create_match_bool, used to combine words inside single quotes from a list into a
    single string.
    :param words: List of words.
    :param startindex: Index where search is started.
    :return: (str, int) or (None, 0) if no closing quote is found.
    """
    for i, word in enumerate(words[startindex + 1:]):
        if "'" in word:
            return ' '.join(words[startindex:startindex + i + 2]), i + 1
    return None, 0
