Enchant is a module in python which is used to check the spelling of a word, gives suggestions to correct words. Also, gives antonym and synonym of words. It checks whether a word exists in dictionary or not.
enchant.dict_exists() is an inbuilt method of
enchant module. It is used to check the availability of a dictionary of a particular language.
Syntax : enchant.dict_exists(tag)
tag : the code of the language dictionary in string datatype
Returns : a boolean value, True if the dictionary exists, False if it does not exists
The dictionary for en_US exists.
Example 2: When
enchant.dict_exists() returns False.
The dictionary for hi_IN does not exists.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course