def add(trie, word, weight):
    """
	add one more term to the trie with new word and weight

	Parameters
	----------
	word:as described above
	weight:as described above

	Return
	------
	a new trie with the new word inserted


	"""
    trie.insert(word, weight)
    return trie
