def validateMonth(value, blank=False, strip=None, allowlistRegexes=None, blocklistRegexes=None, monthNames=ENGLISH_MONTHS, excMsg=None):
<EOL>_validateGenericParameters(blank=blank, strip=strip, allowlistRegexes=allowlistRegexes, blocklistRegexes=blocklistRegexes)<EOL>returnNow, value = _prevalidationCheck(value, blank, strip, allowlistRegexes, blocklistRegexes, excMsg)<EOL>if returnNow:<EOL><INDENT>return value<EOL><DEDENT>try:<EOL><INDENT>if (monthNames == ENGLISH_MONTHS) and (<NUM_LIT:1> <= int(value) <= <NUM_LIT:12>): <EOL><INDENT>return ENGLISH_MONTH_NAMES[int(value) - <NUM_LIT:1>]<EOL><DEDENT><DEDENT>except:<EOL><INDENT>pass <EOL><DEDENT>if len(value) < <NUM_LIT:3>:<EOL><INDENT>_raiseValidationException(_('<STR_LIT>') % (_errstr(value)), excMsg)<EOL><DEDENT>if value[:<NUM_LIT:3>].upper() in monthNames.keys(): <EOL><INDENT>return monthNames[value[:<NUM_LIT:3>].upper()] <EOL><DEDENT>elif value.upper() in monthNames.values(): <EOL><INDENT>return value.title()<EOL><DEDENT>_raiseValidationException(_('<STR_LIT>') % (_errstr(value)), excMsg)<EOL>
Raises ValidationException if value is not a month, like 'Jan' or 'March'.
    Returns the titlecased month.

    * value (str): The value being validated as an email address.
    * blank (bool):  If True, a blank string will be accepted. Defaults to False.
    * strip (bool, str, None): If None, whitespace is stripped from value. If a str, the characters in it are stripped from value. If False, nothing is stripped.
    * allowlistRegexes (Sequence, None): A sequence of regex str that will explicitly pass validation, even if they aren't numbers.
    * blocklistRegexes (Sequence, None): A sequence of regex str or (regex_str, response_str) tuples that, if matched, will explicitly fail validation.
    * monthNames (Mapping): A mapping of uppercase month abbreviations to month names, i.e. {'JAN': 'January', ... }. The default provides English month names.
    * excMsg (str): A custom message to use in the raised ValidationException.

    >>> import pysimplevalidate as pysv
    >>> pysv.validateMonth('Jan')
    'January'
    >>> pysv.validateMonth('MARCH')
    'March'