code: func (c *Corpus) WordFreq(word string) int {
  	id, ok := c.ids[word]
  	if !ok {
  		return 0
  	}
  
  	return c.frequencies[id]
  }
docs: // WordFreq returns the frequency of the word. If the word wasn't in the corpus, it returns 0.