How this tool computes its result
Total word count comes from matching `/[A-Za-z0-9]+/g` tokens in the content. For each keyword line, it counts exact-phrase regex matches (special characters escaped) case-insensitively; for multi-word keywords it separately counts consecutive-word matches joined with `\s+`, and for single-word keywords it counts exact token equality against the tokenized word list — then takes the max of the two counts. Density = count / totalWords * 100, rounded to 2 decimals. Status bands: ≥3% "high", 1–3% "optimal", 0.5–1% "low", 0–0.5% "very-low" (0% = keyword not found). The overall score averages a per-keyword score (100 for optimal, 70 for low, 30 for very-low/not-found, and for high a penalty of `min(density-2, 3) * 20` subtracted from 100, floored at 40).
