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. |
words = ["achieve", "accomplish", "attain", "reach"]
corrector.add_range(words)
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. |
words = ["achieve", "accomplish", "attain", "reach"]
corrector.add_range(words)
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) |
We value your opinion. Your feedback will help us improve our documentation.