I have already asked for something like this elsewhere and was fronted with a wall of code. No fun, cos I'm useless at it.
I would love the idea because in reality, no matter the stats... If gloves don't have at least 2 main enhancers... Crit + Crit Dmg or Crit + AS or Crit Dmg + AS and a main stat... They are worthless.
If helms don't have a socket and crit... Again... Worthless, no matter how nice the other stats would be. I would LOVE this to be a bigger feature, fully set up and then we can go into it and tweak specifics. I'd lend you my GF when you're lonely if you made a full version of this.