Adds the specified collection of synonym groups to this SynonymDictionary.
defadd_range(self,synonyms):...
Parameter
Type
Description
synonyms
Iterable[list[str]]
The collection of synonym groups to add to the dictionary.
Raises
Description
ValueError
Raised when number of synonyms in a group is less than 2.
Example
synonym_groups=[["achieve","accomplish","attain","reach"],["accept","take","have"],]synonyms.add_range(synonym_groups)print("Words in the dictionary:",synonyms.count)
Aliases
These names call add_range too, limited to the overloads listed.