Updated api to filter words under a certain number of average occurrences.