add option for weighting words