clear method

On this page

clear

Removes all words from a SpellingCorrector object.

def clear(self):
    ...

Example

from groupdocs.search import Index

index = Index("./index")
corrector = index.dictionaries.spelling_corrector
if corrector.count > 0:
    # Removing all words from the dictionary
    corrector.clear()

See Also

On this page