get_words method

On this page

get_words

Retrieves the collection of words currently contained in this SpellingCorrector.

def get_words(self):
    ...

Returns: list[str]: The collection of words.

Example

    all_words = corrector.get_words()
    print("Words in the dictionary:", len(all_words))
    ```

### See Also
* class [`SpellingCorrector`](/search/python-net/groupdocs.search.dictionaries/spellingcorrector/)

On this page