|
| 1 | +{ |
| 2 | + "pass": [ |
| 3 | + { |
| 4 | + "answer": [ |
| 5 | + { |
| 6 | + "tool": "Bash", |
| 7 | + "input": { |
| 8 | + "command": "\"/plugins/songwriting/context/pat-pattison/scripts/datamuse.sh\" syllables lonely", |
| 9 | + "description": "count syllables" |
| 10 | + } |
| 11 | + } |
| 12 | + ], |
| 13 | + "why": "quoted script path" |
| 14 | + }, |
| 15 | + { |
| 16 | + "answer": [ |
| 17 | + { |
| 18 | + "tool": "Bash", |
| 19 | + "input": { |
| 20 | + "command": "for w in rearview empty highway; do bash /x/scripts/datamuse.sh syllables \"$w\"; done", |
| 21 | + "description": "count syllables per word" |
| 22 | + } |
| 23 | + } |
| 24 | + ], |
| 25 | + "why": "a loop over the candidate's words" |
| 26 | + }, |
| 27 | + { |
| 28 | + "answer": [ |
| 29 | + { |
| 30 | + "tool": "Bash", |
| 31 | + "input": { |
| 32 | + "command": "S=/x/scripts/datamuse.sh; for w in harmony mirror; do echo \"== $w\"; \"$S\" syllables \"$w\" 2>&1 | head -5; done", |
| 33 | + "description": "count syllables" |
| 34 | + } |
| 35 | + } |
| 36 | + ], |
| 37 | + "why": "script path in a variable, quoted call in a loop" |
| 38 | + }, |
| 39 | + { |
| 40 | + "answer": [ |
| 41 | + { |
| 42 | + "tool": "Bash", |
| 43 | + "input": { |
| 44 | + "command": "S=/x/scripts/datamuse.sh; for w in coffee holder; do printf '%s: ' \"$w\"; $S syllables \"$w\" 2>&1 | head -2; done", |
| 45 | + "description": "count syllables" |
| 46 | + } |
| 47 | + } |
| 48 | + ], |
| 49 | + "why": "script path in a variable, bare call" |
| 50 | + }, |
| 51 | + { |
| 52 | + "answer": [ |
| 53 | + { |
| 54 | + "tool": "Bash", |
| 55 | + "input": { |
| 56 | + "command": "S=/x/scripts/datamuse.sh\nfor w in reach across; do printf \"%s: \" $w; $S syllables $w; done", |
| 57 | + "description": "count syllables" |
| 58 | + } |
| 59 | + } |
| 60 | + ], |
| 61 | + "why": "variable set on its own line" |
| 62 | + }, |
| 63 | + { |
| 64 | + "answer": [ |
| 65 | + { |
| 66 | + "tool": "Bash", |
| 67 | + "input": { |
| 68 | + "command": "bash /x/context/pat-pattison/scripts/datamuse.sh syllables delight", |
| 69 | + "description": "count syllables in the audited line's end word" |
| 70 | + } |
| 71 | + } |
| 72 | + ], |
| 73 | + "why": "the audit's meter box counted with datamuse.sh" |
| 74 | + } |
| 75 | + ], |
| 76 | + "fail": [ |
| 77 | + { |
| 78 | + "answer": [], |
| 79 | + "why": "no call: the count was estimated" |
| 80 | + }, |
| 81 | + { |
| 82 | + "answer": [ |
| 83 | + { |
| 84 | + "tool": "Bash", |
| 85 | + "input": { |
| 86 | + "command": "/x/scripts/datamuse.sh rhyme sad", |
| 87 | + "description": "rhymes" |
| 88 | + } |
| 89 | + } |
| 90 | + ], |
| 91 | + "why": "a rhyme lookup, not a syllable count" |
| 92 | + }, |
| 93 | + { |
| 94 | + "answer": [ |
| 95 | + { |
| 96 | + "tool": "Read", |
| 97 | + "input": { |
| 98 | + "file_path": "/x/scripts/datamuse.sh" |
| 99 | + } |
| 100 | + } |
| 101 | + ], |
| 102 | + "why": "read the script without running it" |
| 103 | + }, |
| 104 | + { |
| 105 | + "answer": [ |
| 106 | + { |
| 107 | + "tool": "Bash", |
| 108 | + "input": { |
| 109 | + "command": "echo 'syllables: 11 13 12 13'", |
| 110 | + "description": "restate the counts" |
| 111 | + } |
| 112 | + } |
| 113 | + ], |
| 114 | + "why": "restates the writer's counts" |
| 115 | + }, |
| 116 | + { |
| 117 | + "answer": [ |
| 118 | + { |
| 119 | + "tool": "Bash", |
| 120 | + "input": { |
| 121 | + "command": "cat /x/scripts/datamuse.sh | grep -n syllables", |
| 122 | + "description": "search the script" |
| 123 | + } |
| 124 | + } |
| 125 | + ], |
| 126 | + "why": "searched, not run" |
| 127 | + }, |
| 128 | + { |
| 129 | + "answer": [ |
| 130 | + { |
| 131 | + "tool": "Bash", |
| 132 | + "input": { |
| 133 | + "command": "bash /x/scripts/datamuse.sh --help 2>&1 | grep syllables", |
| 134 | + "description": "read the usage" |
| 135 | + } |
| 136 | + } |
| 137 | + ], |
| 138 | + "why": "help only" |
| 139 | + }, |
| 140 | + { |
| 141 | + "answer": [ |
| 142 | + { |
| 143 | + "tool": "Bash", |
| 144 | + "input": { |
| 145 | + "command": "/x/scripts/datamuse.sh rhyme sad; echo \"syllables: 11 13 12 13\"", |
| 146 | + "description": "rhymes, then restate the counts" |
| 147 | + } |
| 148 | + } |
| 149 | + ], |
| 150 | + "why": "another mode, then printed counts" |
| 151 | + }, |
| 152 | + { |
| 153 | + "answer": [ |
| 154 | + { |
| 155 | + "tool": "Bash", |
| 156 | + "input": { |
| 157 | + "command": "S=/x/scripts/datamuse.sh; \"$S\" rhyme sad", |
| 158 | + "description": "rhymes" |
| 159 | + } |
| 160 | + } |
| 161 | + ], |
| 162 | + "why": "the variable runs another mode" |
| 163 | + }, |
| 164 | + { |
| 165 | + "answer": [ |
| 166 | + { |
| 167 | + "tool": "Bash", |
| 168 | + "input": { |
| 169 | + "command": "S=/x/scripts/datamuse.sh; echo $S syllables", |
| 170 | + "description": "print the path" |
| 171 | + } |
| 172 | + } |
| 173 | + ], |
| 174 | + "why": "the variable is echoed, not run" |
| 175 | + }, |
| 176 | + { |
| 177 | + "answer": [ |
| 178 | + { |
| 179 | + "tool": "Bash", |
| 180 | + "input": { |
| 181 | + "command": "T=/x/scripts/datamuse.sh; \"$S\" syllables lonely", |
| 182 | + "description": "count syllables" |
| 183 | + } |
| 184 | + } |
| 185 | + ], |
| 186 | + "why": "the variable run is not the one holding the script path" |
| 187 | + } |
| 188 | + ] |
| 189 | +} |
0 commit comments