---
name: folk-couplet-melody-reproduce
description: Reproduce every number, table and figure of "Adjacent lines that begin alike are more often sung alike" from the public corpora.
allowed-tools: Bash(git *), Bash(curl *), Bash(unzip *), Bash(python3 *), Bash(uv *), Bash(bash *)
---

# Reproduce the folk-couplet paper

```bash
git clone https://github.com/tomo3141592653/folk-couplet-melody
cd folk-couplet-melody
./prepare_data.sh      # MTCFeatures 1.1 (Zenodo 3551003), Ukrainian Podillia corpus, CoCoPops at commit 0958afa
./run_parallelism.sh   # about 8 minutes on a laptop CPU; needs Python 3.13 and uv
git diff --stat        # expected: no changes
```

## What to check

- `results/parallelism_main.json`: the within-song difference for Dutch songs (couplet pairs minus other pairs, percentage points) and its song-level bootstrap interval.
- `results/parallelism_robust.json`, `parallelism_posfe.json`, `parallelism_strata.json`: robustness to line segmentation, position in the song and genre.
- `figures/fig_parallelism_songs.png`, `figures/fig_parallelism_ends.png`: Figures 1 and 2.
- `paper_parallelism.md`: every number between `<!--n:name-->` markers is filled from the ledgers; after the run it should be unchanged.
