Add logic to compute unrated words from input texts