var minCount = 10; // Used as 0, anything below 10 uses will be ignored
User hasMany Attributes
Attribute (id, value, count, worth)
// Count - number of users who associate with this attribute
// Worth - float 0.1 (or a better non-zero number?) to 1
An attribute with count of minCount has worth 1. The attribute(s) with the highest count has the lowest possible worth. The lesser used attributes are worth more - lower count -> higher worth.
The difference in worth should be exponential:
- Commonly used attributes (high count) - smaller gap between worth
- Uncommon attributes (low count) - larger gap between worth
I'll be using php for now, but psuedo code is equally acceptable - I'd rather just understand how to do it.