{"version":3,"sources":["jsdelivr-header.js","/npm/gunning-fog@2.0.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACWA,MAAM,kBAAoB,IACpB,OAAS,UAcR,SAAS,WAAW,GACzB,OAAK,GAAW,EAAO,UAAa,EAAO,KAf9B,IAqBV,EAAO,KAAO,EAAO,UACE,EAAO,yBAA2B,GAAK,EAAO,KAvBhD,KAiBf,OAAO,GAQlB","file":"/npm/gunning-fog@2.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/gunning-fog@2.0.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n * @typedef Counts\n *   Counts from input document.\n * @property {number} sentence\n *   Number of sentences.\n * @property {number} word\n *   Number of words.\n * @property {number} [complexPolysillabicWord=0]\n *   Number of words that consist of three or more syllables, that are jargon,\n *   proper nouns, or compound words.\n */\n\n/**\n * @typedef {Counts} GunningFogCounts\n *   Deprecated: please use the `Counts` type instead.\n */\n\nconst complexWordWeight = 100\nconst weight = 0.4\n\n/**\n * Given an object containing the number of words (`word`), the number of\n * sentences (`sentence`), and the number of complex (i.e., jargon, proper\n * nouns, compound words) polysillabic (three or more syllables) words\n * (`complexPolysillabicWord`) in a document, returns the grade level\n * associated with the document.\n *\n * @param {Counts} counts\n *   Counts from input document.\n * @returns {number}\n *   Grade level associated with the document.\n */\nexport function gunningFog(counts) {\n  if (!counts || !counts.sentence || !counts.word) {\n    return Number.NaN\n  }\n\n  return (\n    weight *\n    (counts.word / counts.sentence +\n      complexWordWeight * ((counts.complexPolysillabicWord || 0) / counts.word))\n  )\n}\n"]}