Skip to content

Add New Templates to backend/lib/templates.json #14

@chinmay29hub

Description

@chinmay29hub

✨ Add New Haiku Templates to backend/lib/templates.json

❓ What’s the Issue?

Our haiku templates in backend/lib/templates.json need more variety to create diverse haikus for README SVGs.

💡 Why Is This Important?

New templates make HaikuReadme’s haikus more engaging — like
“Glow in silent code” vs. “Code runs like a stream”.

🔧 Suggested Fix

  • Add 3–5 new patterns to fiveSyllable or sevenSyllable in backend/lib/templates.json.
  • Use parts of speech (nouns, verbs, adjectives, adverbs) and connecting words like and, with.
  • Ensure syllable counts total 5 or 7
    (e.g., ["nouns", "on", "adjectives", "nouns"][1, 1, 2, 1])
  • Test patterns with words.json for valid substitutions.

📝 Additional Details

  • Example: ["verbs", "through", "the", "nouns"]“Flow through the grid”
    ([2, 1, 1, 1] syllables)
  • Test backend API
  • Keep JSON format consistent and readable

Or you can add your ideas to it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is neededjavascriptPull requests that update javascript code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions