Update to buildvocab() to correctly return the N most frequently used words