* implement intervals in word frequency module