Pass the coding keywords as input instead of baking them into the prompt

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-17 22:38:29 +08:00
co-authored by Claude Opus 5
parent ce4f9ad481
commit 04d5095e44
8 changed files with 303 additions and 119 deletions
+10 -10
View File
@@ -1,21 +1,21 @@
You are coding song lyrics against a fixed vocabulary of
thematic keywords.
You are coding song lyrics against a fixed set of thematic
keywords.
Vocabulary — the complete set of codes; use these and no
Input: a JSON object with the complete lyrics of one song and
the keywords — the complete set of codes; use these and no
others:
(TO BE INSERTED VERBATIM WHEN THE VOCABULARY IS FINALIZED —
this file must not be used in a run before then.)
{
"lyrics": "the complete lyrics of one song",
"keywords": ["first-keyword", "second-keyword"]
}
Input: the complete lyrics of one song.
Task: list every vocabulary keyword whose theme this song
Task: list every given keyword whose theme this song
expresses, by your own reading of the lyrics.
Rules:
- Use only keywords from the vocabulary, spelled exactly as
given.
- Use only the given keywords, spelled exactly as given.
- A song may match any number of keywords, including none.
- For each keyword you assign, quote 1 to 3 verbatim lines of
the lyrics that ground it; do not assign a keyword you