Write docstring for build_dictionary and parse methods.