{
  "schemaVersion": 1,
  "slug": "reading-time-calculator",
  "category": "productivity",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "fd078ad4448ce58dd5f7b857f8fa5b2c336b2781fb13c4236cc7fa4f174b6995",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/reading-time-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "T = (W + P × w) ÷ v",
    "vars": [
      [
        "W",
        "Word count"
      ],
      [
        "P",
        "Page count"
      ],
      [
        "w",
        "Words per page"
      ],
      [
        "v",
        "Reading speed (wpm)"
      ],
      [
        "T",
        "Reading minutes"
      ]
    ],
    "note": "Fixed mode speeds are planning assumptions, not measured averages; the removed character and pause estimates are not outputs."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const W={silent:220,aloud:150,presentation:130,fast:400,slow:120}; const wpm=W[mode]||220; const totalWords=words+pages*wordsPerPage; const minutes=totalWords/wpm; return {totalWords,minutes};",
    "inputs": [
      {
        "name": "words",
        "type": "number",
        "default": 1200,
        "min": 1,
        "max": 200000,
        "step": 10
      },
      {
        "name": "mode",
        "type": "select",
        "default": "silent",
        "options": [
          {
            "value": "silent"
          },
          {
            "value": "aloud"
          },
          {
            "value": "presentation"
          },
          {
            "value": "fast"
          },
          {
            "value": "slow"
          }
        ]
      },
      {
        "name": "pages",
        "type": "number",
        "default": 0,
        "min": 0,
        "max": 5000,
        "step": 1,
        "slider": true
      },
      {
        "name": "wordsPerPage",
        "type": "number",
        "default": 250,
        "min": 50,
        "max": 1000,
        "step": 10,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "minutes",
        "precision": 1,
        "unit": "min"
      },
      {
        "name": "totalWords",
        "precision": 0,
        "unit": "words"
      }
    ],
    "interpret": null
  }
}
