Skip to content

feat: dictionary infrastructure for v0.2#2

Merged
aerbilir merged 1 commit into
mainfrom
feat/dictionary-infrastructure
Jul 3, 2026
Merged

feat: dictionary infrastructure for v0.2#2
aerbilir merged 1 commit into
mainfrom
feat/dictionary-infrastructure

Conversation

@aerbilir

@aerbilir aerbilir commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Introduce DictionaryBuilder and Dictionary::fromRows() so dictionary rows only carry author fields (term, category, severity) while normalized lookup keys are derived at build time.
  • Wire TurkishProfile through NormalizationPipeline so dictionary index keys use the same normalization chain as runtime matching.
  • Migrate data/tr.php to author-only rows and add tests/DictionaryTest.php (12 unit tests).
  • Document v0.2 breaking changes in CHANGELOG.md, docs/specification.md, and README.md.

Breaking changes (v0.2)

  • Dictionary::fromArray() removed — use Dictionary::fromRows($rows, $normalizeKey) instead.
  • Author dictionary rows no longer accept a normalized field.

Test plan

  • composer validate
  • composer test — 63 passed (100 assertions)
  • Matcher regression suite unchanged (31 tests)
  • VerbaGuard integration tests unchanged (15 tests)
  • Dictionary validation: empty fields, invalid severity, unknown/missing fields, duplicate keys, author normalized rejection

Made with Cursor

@aerbilir aerbilir merged commit df1d0d4 into main Jul 3, 2026
2 checks passed
@aerbilir aerbilir deleted the feat/dictionary-infrastructure branch July 3, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant