{
  "schemaVersion": 1,
  "slug": "words-per-minute-calculator",
  "category": "productivity",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "20e8711d4c7c7f5da419415508de708603cdef386461b9dd6418e7a48316d8c1",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/words-per-minute-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": "WPM = N ÷ (m + s ÷ 60); CPM ≈ WPM × 5.1",
    "vars": [
      [
        "N",
        "Words typed or spoken"
      ],
      [
        "m",
        "Minutes"
      ],
      [
        "s",
        "Seconds"
      ],
      [
        "WPM",
        "Words per minute"
      ]
    ],
    "note": "CPM = WPM × 5.1 is a rough English-oriented estimate; performance bands were removed."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const totalMinutes=minutes+seconds/60; const wpm=totalMinutes>0?words/totalMinutes:0; return {wpm,charsPerMinute:wpm*5.1,wordsPerHour:wpm*60};",
    "inputs": [
      {
        "name": "words",
        "type": "number",
        "default": 320,
        "min": 1,
        "max": 100000,
        "step": 1
      },
      {
        "name": "minutes",
        "type": "number",
        "default": 5,
        "min": 0.1,
        "max": 600,
        "step": 0.1,
        "slider": true
      },
      {
        "name": "seconds",
        "type": "number",
        "default": 0,
        "min": 0,
        "max": 59,
        "step": 1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "wpm",
        "precision": 1,
        "unit": "wpm"
      },
      {
        "name": "charsPerMinute",
        "precision": 0,
        "unit": "cpm"
      },
      {
        "name": "wordsPerHour",
        "precision": 0,
        "unit": "words"
      }
    ],
    "interpret": null
  }
}
