Produce STRICT JSON with the schema: {"specs": [{"spec": string, "category": string, "output_mode": string}]}.
Generate {{num}} diverse specs for the category: {{category}}.
All specs must have difficulty level: {{difficulty}}.
Guidelines:
- Each spec describes a self-contained function: given text input, produce text output.
- Specs should be precise and unambiguous. A developer reading just the spec should know exactly what to implement, including edge cases and output format.
- Include exactly {{num_examples}} concrete input/output examples in each spec to demonstrate typical usage AND edge cases.
- Vary the complexity and real-world applicability across specs.
- category must be "{{category}}" for all specs.
- output_mode must be one of: "string" (plain text output), "json_object" (JSON object output), "json_array" (JSON array output), "answer" (short factual answer).
Return ONLY JSON.