/oss · 4 merged

spencermountain/compromise

A small JavaScript library that reads English text and can change its tense, number and form.

the project on GitHub (opens in a new tab)
  1. 9 Nov 2026

    A clock before "tonight" means the evening

    What was broken
    "7:45 tonight" came back as a quarter to eight in the morning, and "8 tonight" came back with no time at all.
    What I changed
    A time written before tonight, this evening or tomorrow night is now read as an evening time.
    Why it matters
    "Meet me at 7:45 tonight" no longer lands twelve hours early.

    see the code, #1268 (opens in a new tab)

  2. 9 Nov 2026

    Last season now means the most recent one to end

    What was broken
    In November, last summer pointed to the summer of the year before, even though this year's summer had already ended.
    What I changed
    A year is now taken off only if the season has not ended yet, the same way last june already worked.
    Why it matters
    Apps that read dates from plain English get the season people mean.

    see the code, #1266 (opens in a new tab)

  3. 8 Nov 2026

    Plurals like toes and cheeses turn singular correctly

    What was broken
    Making plurals singular cut some words short: "toes" became "to", "lies" became "ly" and "cheeses" became "chees".
    What I changed
    Three new rules run first for these word shapes. Other words such as heroes and ladies come out as before.
    Why it matters
    Turning "toes" into "to" silently changes a sentence, so text rewritten by the library now stays correct.

    see the code, #1264 (opens in a new tab)

  4. 8 Nov 2026

    Common verbs get the right past tense

    What was broken
    Verbs missing from the word list copied a look-alike irregular verb, so "budget" became "budgot" and "string" became "strought".
    What I changed
    Seven verbs, including budget, string, summarise and panic, now have their correct forms listed.
    Why it matters
    Apps that rewrite text with this library no longer produce made-up words for everyday verbs.

    see the code, #1263 (opens in a new tab)

← every project