**What i have already**
Apple: green apple| red apple| white apple
Orange: green orange| red orange| white orange
Pear: green pear| red pear| white pear
The script automatically formats the counts into a table & CSV file.
**What I need**
I need an experienced coder to add a weighting score into the regex-match key words based on the predefined significance of the word,
Apple: green apple,1| red apple,2| white apple,3
Orange: green orange,1| red orange,5| white orange,10
Pear: green pear,2| red pear,4| white pear,6
and with the option to add up the total score, or the percentage for each composition from that chunk (0-499, 500-999, 1000-1499 etc).