export_dictionary method

export_dictionary

Exports the dictionary to a file with the specified name.

The method does not raise an exception if the file cannot be written, read, or has an invalid format.

def export_dictionary(self, file_path):
    ...
Parameter Type Description
file_path str The file to export to.

Example

# Export an alias dictionary to a file
aliases.export_dictionary("./Aliases.dat")

# Export a homophone dictionary to a file
homophones.export_dictionary("./Homophones.dat")

Aliases

These names call export_dictionary too, limited to the overloads listed.

Alias Accepts
export_dictionary_file export_dictionary_file(file_path)
export_dictionary_string export_dictionary_string(file_path)

See Also