def get_post_reference_section_keyword_patterns():
    """Return a list of compiled regex patterns for keywords.

    Keywords that can often be found after, and therefore suggest the end of
    a reference section in a full-text document.

    :return: (list) of compiled regex patterns.
    """
    compiled_patterns = []
    patterns = [
        u'(' + _create_regex_pattern_add_optional_spaces_to_word_characters(u'prepared') +  # noqa
        r'|' + _create_regex_pattern_add_optional_spaces_to_word_characters(u'created') +  # noqa
        r').*(AAS\s*)?\sLATEX',
        r'AAS\s+?LATEX\s+?' + _create_regex_pattern_add_optional_spaces_to_word_characters(u'macros') + u'v',  # noqa
        r'^\s*' + _create_regex_pattern_add_optional_spaces_to_word_characters(u'This paper has been produced using'),  # noqa
        r'^\s*' +
        _create_regex_pattern_add_optional_spaces_to_word_characters(u'This article was processed by the author using Springer-Verlag') +  # noqa
        u' LATEX'
    ]
    for p in patterns:
        compiled_patterns.append(re.compile(p, re.I | re.UNICODE))
    return compiled_patterns
def get_post_reference_section_keyword_patterns ( ) : compiled_patterns = [ ] patterns = [ u'(' + _create_regex_pattern_add_optional_spaces_to_word_characters ( u'prepared' ) + r'|' + _create_regex_pattern_add_optional_spaces_to_word_characters ( u'created' ) + r').*(AAS\s*)?\sLATEX' , r'AAS\s+?LATEX\s+?' + _create_regex_pattern_add_optional_spaces_to_word_characters ( u'macros' ) + u'v' , r'^\s*' + _create_regex_pattern_add_optional_spaces_to_word_characters ( u'This paper has been produced using' ) , r'^\s*' + _create_regex_pattern_add_optional_spaces_to_word_characters ( u'This article was processed by the author using Springer-Verlag' ) + u' LATEX' ] for p in patterns : compiled_patterns . append ( re . compile ( p , re . I | re . UNICODE ) ) return compiled_patterns
Return a list of compiled regex patterns for keywords.

    Keywords that can often be found after, and therefore suggest the end of
    a reference section in a full-text document.

    :return: (list) of compiled regex patterns.