How garaupere/decagen works
DecaGEN is a research tool for generating rhythmic patterns for Catalan decasyllables and evaluating their rhythmic complexity. Its main workflow is to select a metrical model, generate candidate patterns, evaluate and sort them, then save a table to Excel. A separate comparison module analyzes generator results against corpus patterns and reports statistics and visualizations. The excerpts show the generator, parser, evaluator, and main workflow; comparison details are only partially sampled, so its internal analysis steps are kept together.
Main entry points: decaGEN.py Grammar workflow · compare_results.py Result comparison · gen.py Metrical generators · eval.py Complexity rules
Components 8
Pattern generation
- Grammar workflow
decaGEN.py - Metrical generators
core/gen.py - Pattern expansion
core/pattern_parser.py
Evaluation
- Complexity rules
core/eval.py - Generated tables
generated
Comparison analysis
- Result comparison
compare_results.py - Comparison reports
compared
Other components
- Researcher
Connections 9
- Researcher → Grammar workflow: runs
README.md - Grammar workflow → Metrical generators: calls
decaGEN.py - Metrical generators → Pattern expansion: expands patterns
core/gen.py - Grammar workflow → Complexity rules: evaluates patterns
decaGEN.py - Grammar workflow → Generated tables: writes tables
decaGEN.py - Result comparison → Grammar workflow: uses grammar
compare_results.py - Result comparison → Metrical generators: compares outputs
compare_results.py - Result comparison → Complexity rules: compares evaluations
compare_results.py - Result comparison → Comparison reports: writes reports
compare_results.py