- Nicknames now come from the carltonnorthern/nicknames data set
(Apache 2.0, ~2,800 pairs, bundled in data/nicknames with its license),
plus a few extra groups in EXTRA_NICKNAME_GROUPS. Names match if
directly linked, or if both are short for the same longer name, so
Bill/William and Bill/Will match but William/Robert don't (the data
lists "bill" for both)
- Double Metaphone (text gem) matches names that sound alike but are
spelled differently: Jon/John, Smyth/Smith, Cathy/Kathy,
Steven/Stephen, Jeffrey/Geoffrey
- Faster ranking: per-search word-pair scores are cached, whole-name
comparison only runs when it can succeed, and prepared search data is
kept in process memory until a customer changes (~40 ms per search at
5,000 customers)
Adds gem 'text', '~> 1.3' to the Gemfile.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM