Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mehen.ophi.dev/llms.txt

Use this file to discover all available pages before exploring further.

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

PagePurpose
LOC familyMarkdown LOC variants by construct: prose / code / tables / math / blank / artifact.
Section treeHeading-derived structure with quality flags.
Effective Content UnitsReview-mass normalization across prose and artifacts.
MRPCReading Path Complexity — cyclomatic-complexity analogue for navigation.
MCCCognitive Complexity — local reading burden.
Markdown HalsteadMarkdown-native operators / operands.
DMIDocumentation Maintainability Index — composite 0–100.
Link DebtLink health and reference burden.
Table Burden + ScaffoldTable cost and cognitive scaffolding.
Visual ScaffoldDiagrams and images: helping or hurting?
Artifact DebtUnlabelled, unparsable, oversized, unexplained artifacts.
Repository GroundingResolved repo links, paths, identifiers, version facts.
Evidence CoveragePer-section structural support density.
Filler / Lazy Structure RiskAI-era flag for “big but vacuous”.
Review Criticality Index”Should I review this carefully?” score.
Section BalanceAre sections sized in a maintainable way?
Good ScaffoldBonus credit for helpful technical structure.

Prose layer (opt-in, feature-gated)

PagePurpose
OverviewArchitectural constraints and tier model.
Block-level language detectionPer-block language tagging.
English readabilityFKGL, Fog, SMOG, ARI, Coleman-Liau, Dale-Chall, FORCAST, LIX/RIX.
Lexical diversityMATTR, hapax, density.
Wording qualityPassive, hedges, weasels, wordy, adverbs, nominalizations, cliches.
Inclusive languagealex / retext-equality flags.
Japanese script compositionKanji/hiragana/katakana ratios, registers.
Tateishi RS + Jōyō gradeJapanese readability scores.
JTF rulesJapan Translation Federation 12 rules.
textlint-ja subsetSelected rules from textlint-rule-preset-ja-technical-writing.

See also