Weighting function for selection criteria. The rules are based on the accent and given in the generate file