Skip to content

Commit a1ed952

Browse files
committed
fix(market-research): align sentiment score scale
1 parent 18468a9 commit a1ed952

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

pm-market-research/commands/analyze-feedback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Apply the **sentiment-analysis** skill:
5151
5252
### Overall Sentiment
5353
- Positive: [X%] | Neutral: [Y%] | Negative: [Z%]
54-
- Average sentiment score: [X/10]
54+
- Average sentiment score: [X on a -1 to +1 scale]
5555
- Trend: [improving / stable / declining]
5656
5757
### Top Themes

tests/test_consistency.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,22 @@ def test_plugin_readme_command_refs_exist(self):
221221
)
222222

223223

224+
class TestSentimentAnalysisContract(unittest.TestCase):
225+
def test_command_uses_the_skill_score_scale(self):
226+
plugin = ROOT / "pm-market-research"
227+
skill = (plugin / "skills" / "sentiment-analysis" / "SKILL.md").read_text(
228+
encoding="utf-8"
229+
)
230+
command = (plugin / "commands" / "analyze-feedback.md").read_text(
231+
encoding="utf-8"
232+
)
233+
234+
self.assertIn("sentiment scores (-1 to +1)", skill)
235+
self.assertIn(
236+
"- Average sentiment score: [X on a -1 to +1 scale]", command
237+
)
238+
self.assertNotIn("- Average sentiment score: [X/10]", command)
239+
240+
224241
if __name__ == "__main__":
225242
unittest.main()

0 commit comments

Comments
 (0)