Skip to content

v2.1.0 - Improve helper functions and docs

Choose a tag to compare

@amaanjaved1 amaanjaved1 released this 19 Mar 03:31
· 11 commits to main since this release

Changelog

2.1.0

  • Helpers (formerly dedupe): normalizeComment now strips HTML by default and supports optional stripPunctuation; isValidComment returns a ValidationResult with valid and issues instead of a boolean, checking for empty, too short, all caps, excessive repeats, and no alphabetic characters.
  • Sentiment: analyzeSentiment now uses the sentiment package (AFINN-165) directly—no callback required. Returns score, comparative, and label.