# North Dakota Administrative Code (N.D.A.C.)

## Directory layout

```
~/refs/ndac/
├── .index.json                                         — section index
├── title-<T>/
│   ├── _title.md                                       — title metadata
│   ├── article-<T>-<AA>.md                             — single-file article (127 total)
│   └── article-<T>-<AA>/                               — multi-chapter article (492 total)
│       ├── _article.md                                 — article metadata
│       └── chapter-<T>-<AA>-<CC>.md                    — chapter text
```

132 titles. Articles exist in two forms: single-file (small articles) and directories with per-chapter files.

## Lookup

N.D.A.C. § 75-02-01.2-01 maps to `title-75/article-75-02/chapter-75-02-01.2.md`. If the article is small, it may be a single file: `title-75/article-75-07.md`. Sections appear as `### §` headings.

Check for the directory form first, then fall back to the single-file form.

## Section index

`.index.json` maps sections to files and line numbers:

```python
import json
idx = json.load(open(".index.json"))
entry = idx["10-01-01-01"]
# {"file": "title-10/article-10-01/chapter-10-01-01.md", "line": 7, "heading": "..."}
```

## Heading format

```markdown
# Title 33 — State Department of Health
## Article 33-01 — General Administration
## Chapter 33-01-01 — Organization of Department
### § 33-01-01-01. Organization and functions of state department of health.
```

## Citation format

```
N.D.A.C. § 75-02-01.2-01
```

## Access

READ-ONLY. Do not modify, delete, or write to any file in this directory.
