code: def add_term(self, t):
          
          if t not in self.terms:
              if t.parent_term_lc == 'root':
                  self.terms.append(t)
  
                  self.doc.add_term(t, add_section=False)
  
                  t.set_ownership()
  
              else:
                  raise GenerateError("Can only add or move root-level terms. Term '{}' parent is '{}' "
                                      .format(t, t.parent_term_lc))
  
          assert t.section or t.join_lc == 'root.root', t
docs: Add a term to this section and set it's ownership. Should only be used on root level terms