Rapper-native: ad-lib awareness and a bar counter

Inline (parentheticals) are delivery, not text — they no longer rhyme
or steal the line-ending slot ("...bunch (yeah)" rhymes on bunch).
The readout leads with "bar 3/16" for the caret's place in its verse.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 05:16:39 -04:00
parent a5e835bcd7
commit 56ec754c5f
3 changed files with 29 additions and 1 deletions
+9
View File
@@ -533,3 +533,12 @@ def test_word_inside_grouped_phrase_still_rhymes():
"wastin' all this time with style")
group_with(text, "mind", "time")
group_with(text, "while", "style")
def test_inline_adlibs_excluded():
# (yeah) is delivery, not text — bunch keeps the line-ending slot
text = ("Six-foot, seven-foot, eight-foot bunch (yeah)\n"
"I roll with the gang, throw a punch (what)")
assert scheme(text) == "aa"
assert "yeah" not in highlighted(text)
group_with(text, "bunch", "punch")