Good day!
I've been tasked with formatting product descriptions from upper case to 'proper case' as part of a system transition. Whilst I can use the "proper" stored procedure (as cribbed from GMastros' post* on Lessthandot), it also changes part numbers (e.g. FGHR-12) or abbreviations (uPVC) which need to remain as-is.
Therefore, a dictionary approach appears more suitable, and to this extent, I have created a two-column word table from the descriptions of all words, being each word and its replacement.
On a Monday morning, I can't envisage a set approach, but was contemplating looping through the product table, and looping the dictionary table per entry. At 15K products and 17K words, this will be a 0.25G tests. Alternatively, only 4K of the 17K words need replacing, so that could be a mere 68M checks.
Any thoughts (or articles I should read) on how best to proceed?
thanks,
lex
*
soi là, soi carré
I've been tasked with formatting product descriptions from upper case to 'proper case' as part of a system transition. Whilst I can use the "proper" stored procedure (as cribbed from GMastros' post* on Lessthandot), it also changes part numbers (e.g. FGHR-12) or abbreviations (uPVC) which need to remain as-is.
Therefore, a dictionary approach appears more suitable, and to this extent, I have created a two-column word table from the descriptions of all words, being each word and its replacement.
On a Monday morning, I can't envisage a set approach, but was contemplating looping through the product table, and looping the dictionary table per entry. At 15K products and 17K words, this will be a 0.25G tests. Alternatively, only 4K of the 17K words need replacing, so that could be a mere 68M checks.
Any thoughts (or articles I should read) on how best to proceed?
thanks,
lex
*
soi là, soi carré