Skip to content

Fix plural matching for words ending in ss - #363

Merged
TMHSDigital merged 1 commit into
TMHSDigital:mainfrom
vikram17dp:fix/search-plural-ss
Dec 4, 2026
Merged

TMHSDigital merged 1 commit into
TMHSDigital:mainfrom
vikram17dp:fix/search-plural-ss

Conversation

@vikram17dp

Copy link
Copy Markdown
Contributor

Summary

  • Prevent words ending in "ss" from being incorrectly treated as plurals.
  • Preserve normal plural matching for words such as "buttons".
  • Add regression tests for bass, basic, moss, and plural matching.

Testing

  • Ran npm run check successfully.
  • All tests, validation checks, and build passed.

Fixes #337

@TMHSDigital
TMHSDigital merged commit c2fc6fc into TMHSDigital:main Dec 4, 2026
2 checks passed
TMHSDigital added a commit that referenced this pull request Dec 4, 2026
Resolves the overlap with #366 in site/cli/mcp.mjs and applies the review
changes for both:

- mcp.mjs main(argv) parses the argv it is given in strict mode, so
  `fgda mcp --data x` works and a mistyped flag stops with the usage line.
- The line handler is the exported replyTo(), with tests for bad JSON,
  non-object messages, a throwing tool call and the 1 to 100 limit (#341).
- The run guard in fgda.mjs and mcp.mjs compares real paths, so the CLI
  runs through the symlink npm makes for a package bin. Without this the
  npx command these docs give did nothing on Linux and macOS (#334).
- Restores the indentation of one line touched in #363.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@TMHSDigital

Copy link
Copy Markdown
Owner

Merged, thanks. The fix is right: words ending in "ss" are no longer stemmed and "buttons" still finds "button". I restored the indentation of one unrelated line in the test file on our side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search treats words ending in "ss" as plurals, so "bass" matches "base" and "basic"

2 participants