Skip to main content
mehen treats Markdown as a first-class artifact. Instead of stripping code fences, diagrams, tables, images, links, and math before counting words, every construct contributes to a dedicated metric suite. The suite is split into two layers:
  • Structural layer — language-opaque, AST-driven: LOC family, section tree, reading-path complexity, link/table/visual scaffolds, repository grounding, filler/lazy risk, review criticality.
  • Prose layer — language-aware (English and Japanese): readability ensemble, lexical diversity, wording quality, JTF rules, textlint subset.
Code-style metrics like cyclomatic complexity, NOM, NPA, NPM, and WMC do not apply to Markdown — prose has no functions, classes, or interfaces to score. mehen emits a Markdown-specific suite tailored to prose, code blocks, and references.

Structural layer

Prose layer (opt-in, feature-gated)

See also