Generate all possible alternative strings based on a dictionary node.js

Viewed 13

I'm not a coder and I'm trying to get a freelancer to understand my needs. So this question may be simple.

I have a list of automotive parts and would like to generate their alternative descriptions based on a predefined list.

ie.
"LH FENDER" is in my DB

I want to generate alternative descriptions by the following list.

"LHF","LEFT HAND FRONT","LH","LEFT HAND","PINK"

RESULT:

LH FENDER
LHF FENDER
LEFT HAND FRONT FENDER
LEFT HAND FENDER
PINK FENDER

There is 500,000 different items in my DB that may or may not contain words that need to be substituted.

Also please note that the replacement must be of whole words within the description.

Thank you in advanced

0 Answers
Related