@classmethod<EOL><INDENT>def fix_mispelled_day(cls, timestr):<DEDENT>
day_extraction = cls.START_WITH_DAY_OF_WEEK.match(timestr)<EOL>if day_extraction is not None:<EOL><INDENT>day = day_extraction.group(<NUM_LIT:1>).lower()<EOL>if len(day) == <NUM_LIT:3>:<EOL><INDENT>dataset = DAYS_ABBR<EOL><DEDENT>else:<EOL><INDENT>dataset = DAYS<EOL><DEDENT>if day not in dataset:<EOL><INDENT>days = list(dataset)<EOL>days.sort(key=lambda e: levenshtein(day, e))<EOL>return days[<NUM_LIT:0>] + day_extraction.group(<NUM_LIT:2>)<EOL><DEDENT><DEDENT>
fix mispelled day when written in english

        :return: `None` if the day was not modified, the new date otherwise