Season Interpretation Rules in Natural Language Processing: From Words to Dates

An October calendar card surrounded by autumn leaves and dried flowers, the kind of season phrase that season interpretation rules in natural language processing turn into dates
Photo by Boris Pavlikovsky on Pexels

Season interpretation rules in natural language processing turn a phrase like "next summer" into a start date and an end date that a program can store and compare. Each rule pairs a season word with a date range, and it needs two pieces of context to pick the right range: a reference date and a location. Get either one wrong and "next summer" lands in the wrong year or on the wrong side of the equator.

This matters anywhere people type dates the way they speak. Booking assistants and search filters receive "early spring" far more often than "2027-03-01". Below is how the standard tools handle seasons, where they quietly disagree, and a small rule set you can adapt.

What season interpretation rules do in natural language processing

A season rule does two jobs. Recognition finds the span of text that refers to a time, and normalisation converts that span into a machine-readable value. Together they are called temporal tagging.

Recognition works much like the patterns in our guide to name extraction rules in natural language processing: a word list plus a few grammatical checks. Normalisation is where seasons get awkward, because a season has no single agreed start date.

NOAA's National Centers for Environmental Information describes two competing definitions. Astronomical seasons start at the solstices and equinoxes, so their start dates drift from year to year and their lengths vary between 89 and 93 days. Meteorological seasons use whole calendar months, with summer in the Northern Hemisphere running June through August. Climate statistics use the meteorological version because it lines up with monthly data.

Your rule set has to pick one. Ask a room full of people when summer starts and you will get several answers, one of them delivered by a meteorologist with a spreadsheet.

How TIMEX3 records a season as a date value

Most temporal taggers write their output in TIMEX3, the time-expression tag from the TimeML annotation standard. TIMEX3 gives each season a two-letter code, such as SU for summer and WI for winter.

The TimeML annotation guidelines show "summer of 1964" annotated with the value 1964-SU. When the year is unknown, the guidelines fill it with placeholders, giving XXXX-SU. The standard records the season as a season and leaves the conversion to concrete dates for later. That is a sensible design: the value stays true even if your definition of summer changes.

HeidelTime, a widely used open-source tagger, follows the same path. Its English rules map a bare "summer" to an intermediate value, UNDEF-year-SU, and fill in the year from the document's date in a later pass. "Winter 2001" becomes 2001-WI directly. The rule file even lists "summer of 69" as a test example, which raises the century question (1969 or 2069) and tells you something about the developers' playlist.

Natural language processing parameter extraction techniques for season phrases

Treat a season phrase as a small form to fill in. Besides the season and the year, a phrase can carry a modifier such as "late" or a relation such as "next". Each phrase type needs different context to resolve.

PhraseExtracted parametersContext needed to resolve
summer 2027season=SU, year=2027Hemisphere and season definition
next winterseason=WI, relation=nextReference date, hemisphere
late springseason=SP, modifier=ENDA rule for what "late" covers
the fallseason=FA, or a verbPart-of-speech check

The open-source tools make different choices here. Facebook's Duckling library hard-codes its English season table with astronomical dates: summer runs from June 21 to September 23, and winter from December 21 to March 20. Stanford's SUTime anchors each season on its solstice or equinox and spans roughly a quarter. SUTime also ships a filter that discards "fall" and "spring" when the part-of-speech tagger does not label them as nouns, and it does the same for "march" and "may". Without that filter, "prices may fall in spring" contains three dates.

Here is a minimal resolver using meteorological seasons. It returns a start date and an exclusive end date.

from datetime import date

START = {"spring": 3, "summer": 6, "fall": 9, "autumn": 9, "winter": 12}
FLIP = {"spring": "fall", "summer": "winter", "fall": "spring",
        "autumn": "spring", "winter": "summer"}

def season_range(season, year, hemisphere="N"):
    if hemisphere == "S":
        season = FLIP[season]
    month = START[season]
    start = date(year, month, 1)
    end = date(year + (month + 3 > 12), (month + 2) % 12 + 1, 1)
    return start, end

def next_season(season, ref, hemisphere="N"):
    for year in (ref.year - 1, ref.year, ref.year + 1):
        start, end = season_range(season, year, hemisphere)
        if start > ref:
            return start, end

Two policy decisions hide in those few lines. First, winter crosses the new year, so "winter 2026" could mean the winter that starts in December 2026 or the one that includes January 2026. The code assigns winter to the year in which it starts. Second, "next winter" asked on November 12 returns the winter starting in three weeks. Some users mean the one after that. Either answer is defensible. Your system should give the same one every time and document it.

Hemispheres, fiscal calendars and natural language processing in finance

NOAA's page states the problem plainly: the seasons are reversed in the Southern Hemisphere. A user in Sydney who books something for "summer" means December to February. Duckling's English season table carries one set of dates, the northern one, so any southern-hemisphere product built on it needs its own adjustment.

A wooden snowflake ornament standing in beach sand, a winter symbol in a summer setting that season interpretation rules must handle in the Southern Hemisphere
Photo by Karen Laårk Boshoff on Pexels

The location has to come from somewhere reliable. An account setting is best. A time zone such as Australia/Sydney is a reasonable fallback. When you have neither, default to one hemisphere and flag the result as assumed, so a reviewer can catch it.

Natural language processing in finance adds a second layer, because business text is full of seasons with nothing to do with weather. "Earnings season" and "the holiday season" are named periods with no fixed start date, and a fiscal "Q3" depends on the month in which a company's financial year begins. Keep these in a separate lookup table owned by someone who knows the business calendar. Mixing them into the weather rules is how a retailer's holiday forecast ends up starting on the winter solstice.

Transformers: state-of-the-art natural language processing still needs the rules

A large language model reads "the back half of next summer" with ease, where a regular expression gives up. The catch is context. A model has no idea what today's date is or where your user lives unless the prompt says so, and its sense of "now" comes from its training data. We cover why that happens in LLM Systems Engineering.

The model will answer confidently either way. It was also confident about which year it thought it was.

A hybrid works well in practice:

  • Put the reference date and the user's hemisphere in the prompt every time.
  • Ask the model for a TIMEX3 value plus an ISO start and end date, in a fixed JSON shape.
  • Check the output with your rules: the value parses, the start comes before the end, and the range matches your season table.
  • Fall back to the rule-based resolver when the check fails, and log the disagreement.

The logged disagreements become your test set. Treating the extraction prompt as a maintained component, versioned and tested like code, is the approach set out in AI Prompt Engineering.

A season rule set you can ship this week

Most season bugs come from decisions nobody wrote down. Make these explicit before the first user types "after the summer":

  • Pick meteorological or astronomical seasons, and note the choice in the README.
  • Store the TIMEX3 value next to the resolved range, so you can re-resolve if the definition changes.
  • Require a reference date for every relative phrase, and refuse to resolve without one.
  • Take the hemisphere from the user's account, and mark any default as assumed.
  • Decide which year owns winter.
  • Filter "fall" and "spring" by part of speech.
  • Keep business periods like earnings season in their own table.
  • Add a test for a Southern Hemisphere user in December.

That last test catches more bugs than the other seven combined, and it is the only one that involves imagining Christmas at the beach.

Frequently asked questions

What does "next summer" mean to a date parser?

In most rule sets it means the first summer that starts after the reference date, usually the date the text was written. Libraries differ on whether a summer already under way counts, so check yours. Whatever the rule, apply it the same way every time and document it.

What is the TIMEX3 value for a season?

TIMEX3 writes a season as a year plus a two-letter code, so summer 1964 becomes 1964-SU and winter 2001 becomes 2001-WI. When the year is unknown, the TimeML guidelines put XXXX in its place. The value records the season itself, and conversion to exact dates happens downstream.

Is spring in September in the Southern Hemisphere?

Yes. The seasons are reversed south of the equator, so meteorological spring there covers September to November and summer covers December to February. A season rule needs the user's location to resolve the phrase correctly.

How do NLP tools tell "fall" the season from "fall" the verb?

They check the part of speech. Stanford's SUTime discards matches on fall and spring when the tagger does not label them as nouns, and it applies the same filter to march and may. A rule set without this check will find dates in ordinary sentences.

Do large language models interpret seasons better than rules?

They handle unusual phrasing better, such as the back half of next summer. They do worse on consistency, and they cannot know the current date or the user's hemisphere unless the prompt supplies both. A common setup lets the model extract the value and uses rules to validate it.

Should season rules use astronomical or meteorological seasons?

Meteorological seasons use whole months, which makes them easier to store and report on. Astronomical seasons follow the solstices and equinoxes, so their dates shift slightly from year to year. Pick one, write it down and use it everywhere.

Sources