# Reference Parsing Test Fixtures

This directory contains test documents for integration testing of biblical reference parsing.

## Format

Each test document should be a Markdown file with YAML frontmatter containing the expected references:

```markdown
---
references:
  - Ephesians 2:11-22
  - Galatians 2
  - Genesis 15:6
---

Your document content here...
```

## Running Tests

Run the integration tests with:

```bash
cargo test test_reference_parsing_from_documents -- --nocapture
```

The `--nocapture` flag shows detailed output including:
- Expected references from the YAML frontmatter
- References found by the parser
- Matches, misses, and extras
- Accuracy percentage

## Current Baseline

As of the initial test with `sermon-test.md`:
- **Accuracy**: 35.7% (5/14 references matched)
- **Matched**: Single chapter references and chapter:verse references work well
- **Missed**: Verse ranges within chapters (e.g., "Ephesians 2:14-17", "Ephesians 2:11-22")
- **Extra detections**: Book names mentioned without specific references

## Adding New Test Documents

To add a new test document:

1. Create a new `.md` file in this directory
2. Add YAML frontmatter with the `references` list
3. Add your document content below the frontmatter
4. Run the tests to see how the parser performs

The test will automatically discover and test all `.md` files in this directory.
