{
  "version": 1,
  "canonical": "https://xaede.net/work/english-stemming-algorithm",
  "title": "English Stemming Algorithm",
  "description": "I developed the English Stemming Algorithm in 2003: an ordered rule system for reducing word variation in information retrieval, with a C reference implementation.",
  "language": "en",
  "manifest": "https://xaede.net/representations/index.json",
  "contentHtml": "<section class=\"detail-intro\"><nav class=\"page-breadcrumb\" aria-label=\"Breadcrumb\"><ol><li><a href=\"/\">Home</a></li><li><a href=\"/work\">Work</a></li><li><span aria-current=\"page\">English Stemming Algorithm</span></li></ol></nav><span class=\"eyebrow\">Historical reference implementation / C</span><h1>English Stemming Algorithm</h1><p class=\"detail-deck\">An ordered rule system for word endings</p><p class=\"intro-copy\">I developed the English Stemming Algorithm in 2003: an ordered rule system for reducing word variation in information retrieval, with a C reference implementation.</p><div class=\"detail-links\"><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/english-stemming-algorithm\" rel=\"noopener noreferrer\">View the source <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/english-stemming-algorithm/blob/main/README.md\" rel=\"noopener noreferrer\">Project documentation <span aria-hidden=\"true\">↗</span></a></div></section><figure class=\"project-image wide-image\" data-project-visual><a href=\"/media/visuals/projects--english-stemming-algorithm.svg\" class=\"visual-open\" aria-label=\"Open full-size visual: English Stemming Algorithm\"><img src=\"/media/visuals/projects--english-stemming-algorithm.svg\" width=\"1600\" height=\"1000\" alt=\"English Stemming Algorithm — explanatory diagram\"  decoding=\"async\"></a><figcaption>Diagram of the C reference implementation, not a historical interface capture. · <a href=\"/media/visuals/projects--english-stemming-algorithm.svg\">View full size ↗</a></figcaption></figure><section class=\"section detail-grid\"><aside><span class=\"eyebrow\">AREAS OF EXPLORATION</span><div class=\"tags\"><span>C</span><span>Information retrieval</span></div><p class=\"small\">MIT · Public repository</p><p class=\"small\">GitHub record: February 9, 2023</p></aside><div class=\"prose\"><section class=\"project-chapter\"><h2>Reduce word variation with an explicit rule system</h2><p>I developed the English Stemming Algorithm in 2003 to address a practical information-retrieval problem: different forms of a word can obscure a shared base. ESA applies an ordered rule list to tokens so related forms can be conflated for indexing and search.</p><p>Each rule specifies a suffix, whether it may apply after an earlier modification, a number of characters to remove and a string to append. Rules can be extended and interdependent, allowing a later transformation to act on an earlier result.</p></section><section class=\"project-chapter\"><h2>A small C reference implementation</h2><p>The reference implementation keeps rules in an array and processes them iteratively. The original article describes a 67-item rule list derived from Porter behavior, giving the implementation a comparison point. Input boundaries require a token longer than two characters with at least one vowel and one consonant; the resulting token must also remain longer than two characters.</p><p>A simple build script compiles and runs the supplied example. The source, algorithm abstract and original discussion are available through the current GitHub repository and the reading edition on this site.</p></section><section class=\"project-chapter\"><h2>The dates and the original comparison</h2><p>The research was authored in 2003, explained again on Xaede in 2009 and published to GitHub in 2023. The original timing comparison used a Pentium Celeron 500 MHz system. Those measurements belong to that implementation and test environment; they do not establish a modern performance advantage across languages or current stemmers.</p></section><h2>Implementation at a glance</h2><ul><li>Rules can remove, replace, extend or otherwise alter word endings.</li><li>Rule ordering allows one transformation to act on another’s result.</li><li>The reference rule set reproduces Porter stemming behavior for comparison.</li></ul><h2>Project status</h2><p>Historical reference code and measurements. The 2003 research, 2009 article and 2023 repository publication are distinct events.</p><div class=\"detail-links\"><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/english-stemming-algorithm\" rel=\"noopener noreferrer\">Source on GitHub <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/english-stemming-algorithm/blob/main/README.md\" rel=\"noopener noreferrer\">Further technical detail <span aria-hidden=\"true\">↗</span></a></div><p><a href=\"/writing/english-stemming-algorithm-2003\">Read the algorithm’s original explanation on Xaede →</a></p></div></section>",
  "structuredData": {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "Person",
        "@id": "https://xaede.net/#josh-english",
        "name": "Josh English",
        "url": "https://xaede.net/about",
        "sameAs": [
          "https://github.com/josh-english-2k18",
          "https://medium.com/@jengas",
          "https://www.linkedin.com/in/joshua-s-english",
          "https://x.com/JoshSeriesAI"
        ],
        "jobTitle": "VP of Engineering",
        "description": "Josh English is VP of Engineering at Chronicle Media and was previously CTO of Series Entertainment. His career spans more than twenty-five years of distributed systems, game technology and engineering leadership. At Google he worked as a lead engineer on large-scale services and applied ML; at Big Run Studios he led multidisciplinary technology teams across seven time zones and four countries. At Series he directed engineering, QA, DevOps and infrastructure supporting live commercial games and AI-enabled production. He also builds personal games and developer tools to investigate how emerging capabilities work in practice, and writes about engineering judgment, organisation design and product economics.",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/about#webpage"
        }
      },
      {
        "@type": "WebSite",
        "@id": "https://xaede.net/#website",
        "url": "https://xaede.net/",
        "name": "Xaede",
        "alternateName": [
          "Xaede.net",
          "Josh English — Xaede"
        ],
        "inLanguage": "en",
        "publisher": {
          "@id": "https://xaede.net/#josh-english"
        }
      },
      {
        "@type": "WebPage",
        "@id": "https://xaede.net/work/english-stemming-algorithm#webpage",
        "url": "https://xaede.net/work/english-stemming-algorithm",
        "name": "English Stemming Algorithm",
        "description": "I developed the English Stemming Algorithm in 2003: an ordered rule system for reducing word variation in information retrieval, with a C reference implementation.",
        "inLanguage": "en",
        "isPartOf": {
          "@id": "https://xaede.net/#website"
        },
        "about": {
          "@id": "https://xaede.net/#josh-english"
        },
        "mainEntity": {
          "@id": "https://xaede.net/work/english-stemming-algorithm#project"
        },
        "breadcrumb": {
          "@id": "https://xaede.net/work/english-stemming-algorithm#breadcrumbs"
        },
        "primaryImageOfPage": {
          "@id": "https://xaede.net/media/visuals/projects--english-stemming-algorithm.svg#image"
        }
      },
      {
        "@type": "SoftwareSourceCode",
        "@id": "https://xaede.net/work/english-stemming-algorithm#project",
        "name": "English Stemming Algorithm",
        "description": "I developed the English Stemming Algorithm in 2003: an ordered rule system for reducing word variation in information retrieval, with a C reference implementation.",
        "author": {
          "@id": "https://xaede.net/#josh-english"
        },
        "codeRepository": "https://github.com/josh-english-2k18/english-stemming-algorithm",
        "programmingLanguage": [
          "C",
          "Shell"
        ],
        "creativeWorkStatus": "Historical reference implementation",
        "url": "https://xaede.net/work/english-stemming-algorithm",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/work/english-stemming-algorithm#webpage"
        },
        "image": {
          "@id": "https://xaede.net/media/visuals/projects--english-stemming-algorithm.svg#image"
        }
      },
      {
        "@type": "BreadcrumbList",
        "@id": "https://xaede.net/work/english-stemming-algorithm#breadcrumbs",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://xaede.net/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Work",
            "item": "https://xaede.net/work"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "English Stemming Algorithm",
            "item": "https://xaede.net/work/english-stemming-algorithm"
          }
        ]
      },
      {
        "@type": "ImageObject",
        "@id": "https://xaede.net/media/visuals/projects--english-stemming-algorithm.svg#image",
        "url": "https://xaede.net/media/visuals/projects--english-stemming-algorithm.svg",
        "contentUrl": "https://xaede.net/media/visuals/projects--english-stemming-algorithm.svg",
        "width": 1600,
        "height": 1000,
        "caption": "Diagram of the C reference implementation, not a historical interface capture."
      }
    ]
  }
}
