No longer passing the search word through the expandNoun helper function. This helper function has been leading to a lot of false matches which confuses end users and ultimately lowers their trust in the quality of the platform.
Removed letter N in M regexes - there was a copy and paste mistake where if a user's search word included the letter m (case insensitive) then the generated wordReg, definitionsReg, and examplesReg would not only include the letter m but also the letter m in the regexes, which led to a lot of false matches.
Issue ticket number and link
Closed #785
Motivation and Context
Recently the quality of search has been pretty low.
How Has This Been Tested?
Ran all unit tests locally and updated stale tests.
Describe your changes
expandNoun
helper function. This helper function has been leading to a lot of false matches which confuses end users and ultimately lowers their trust in the quality of the platform.wordReg
,definitionsReg
, andexamplesReg
would not only include the letter m but also the letter m in the regexes, which led to a lot of false matches.Issue ticket number and link
Closed #785
Motivation and Context
Recently the quality of search has been pretty low.
How Has This Been Tested?
Ran all unit tests locally and updated stale tests.
Screenshots (if appropriate):
N/A