2.3 KiB
Folksy Idiom Generator — Project Spec
Overview
Build a procedural fake-proverb generator that produces sayings which sound like real folk wisdom but are semantically hollow. The system uses ConceptNet 5 relationships between concrete nouns to fill typed slots in proverb templates, ensuring every generated saying contains real-world object relationships dressed up in wisdom-sounding syntax.
The core insight: real folk sayings encode real relationships (corn feeds chickens, ducks live on ponds, pickles are cucumbers plus dill). Fake sayings use the same real relationships in proverb-shaped sentence frames. The listener validates the semantic links, parses the structure as wisdom, and then realizes it doesn't actually teach anything. That gap is the humor.
File Organization
folksy-generator/
├── FOLKSY_GENERATOR_SPEC.md # This file
├── folksy_generator.py # Main CLI tool
├── data/
│ ├── folksy_vocab.csv # Curated vocabulary
│ ├── folksy_relations.csv # Relationship edges
│ └── classified_proverbs.csv # Labeled real proverbs
├── schemas/
│ └── fictional_entities.schema.json
├── examples/
│ ├── my_world.json # Example fictional entities
│ └── sample_output.txt # Example generated sayings
└── scripts/
└── extract_from_conceptnet.py # One-time extraction script (requires psql access)
Data Sources
- PostgreSQL database
conceptnet5with full ConceptNet 5 dataset (37M edges, 33M nodes, 50 relation types) - Curated folksy vocabulary: 500-800 concrete nouns tagged with categories
- Relationship edges between vocabulary words with typed relations and confidence weights
Meta-Template Families
- deconstruction — "A without B is just humble D"
- denial_of_consequences — "Don't create conditions for B and deny B"
- ironic_deficiency — "Producer of X lacks X"
- futile_preparation — "Like doing A and hoping for unrelated Y"
- hypocritical_complaint — "Consumes X, complains about Y"
- tautological_wisdom — "Obviously X leads to Y, stated as wisdom"
- false_equivalence — "A is just B with/without property P"
See full spec in project history for detailed template definitions and example chains.