Add words dictionary, integrate into encode