Patterns¶
This module contains additional parsing patterns and utilities that are used in RTN.
Functions:
- normalize_title: Normalize the title string to remove unwanted characters and patterns.
- check_pattern: Check if a pattern is found in the input string.
Arguments:
- patterns (list[regex.Pattern]): A list of compiled regex patterns to check.
- raw_title (str): The raw title string to check.
For more information on each function, refer to the respective docstrings.
            check_pattern(patterns, raw_title)
¶
    Check if a pattern is found in the input string.
Source code in RTN/patterns.py
              54 55 56  |  | 
            normalize_title(raw_title, lower=True)
¶
    Normalize the title to remove special characters and accents.
Source code in RTN/patterns.py
              41 42 43 44 45 46 47 48 49 50 51  |  |