add_range method

add_range

Adds the specified collection of words to this SpellingCorrector instance.

def add_range(self, words):
    ...
Parameter Type Description
words Iterable[str] The collection of words to add to the dictionary.
Raises Description
ValueError When words is None.

Example

words = ["achieve", "accomplish", "attain", "reach"]
corrector.add_range(words)

add_range

Adds the specified collection of words to this SpellingCorrector instance.

def add_range(self, words):
    ...
Parameter Type Description
words list[str] The collection of words to add to the dictionary.
Raises Description
ValueError If words is None.

Example

words = ["achieve", "accomplish", "attain", "reach"]
corrector.add_range(words)

Aliases

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

Alias Accepts
add_range_files add_range_files(words)
add_range_files(words)
add_range_strings add_range_strings(words)
add_range_strings(words)
add_range_ienumerable add_range_ienumerable(words)

See Also