expose build_dictionary