Files
nuzlocke-tracker/.beans/nuzlocke-tracker-ueyy--create-name-dictionary-data-file.md

38 lines
1.3 KiB
Markdown
Raw Normal View History

2026-02-11 17:00:16 +01:00
---
# nuzlocke-tracker-ueyy
title: Create name dictionary data file
status: completed
2026-02-11 17:00:16 +01:00
type: task
priority: normal
created_at: 2026-02-11T15:56:26Z
updated_at: 2026-02-11T20:42:16Z
2026-02-11 17:00:16 +01:00
parent: nuzlocke-tracker-igl3
blocking:
- nuzlocke-tracker-c6ly
---
Create a JSON data file containing themed words for nickname generation, stored in the backend alongside other seed data.
2026-02-11 17:00:16 +01:00
## Requirements
- Store at `backend/src/app/seeds/data/name_dictionary.json`
- Category-keyed structure for fast lookup:
```json
{
"mythology": ["Apollo", "Athena", "Loki", ...],
"space": ["Apollo", "Nova", "Nebula", ...],
"food": ["Basil", "Sage", "Pepper", ...]
}
```
- Words may appear in multiple categories
2026-02-11 17:00:16 +01:00
- Categories should include themes like: mythology, food, space, nature, warriors, music, literature, gems, ocean, weather, etc.
- Target 150-200 words per category
- Words should be short, punchy, and suitable as Pokemon nicknames (ideally 1-2 words, max ~12 characters)
- This file is NOT seeded into the database — it is read directly by the backend service at runtime
2026-02-11 17:00:16 +01:00
## Checklist
- [x] Create `backend/src/app/seeds/data/name_dictionary.json` with the category-keyed structure
- [x] Populate each category with 150-200 words
- [x] Validate no duplicates exist within a single category
- [x] Add a utility function to load the dictionary from disk (with caching)