def dict_exists(self, tag): """Check availability of a dictionary. This method checks whether there is a dictionary available for the language specified by 'tag'. It returns True if a dictionary is available, and False otherwise. """ self._check_this() val = _e.broker_dict_exists(self._this, tag.encode()) return bool(val)
def dict_exists(self,tag): """Check availability of a dictionary. This method checks whether there is a dictionary available for the language specified by 'tag'. It returns True if a dictionary is available, and False otherwise. """ self._check_this() tag = EnchantStr(tag) val = _e.broker_dict_exists(self._this,tag.encode()) return bool(val)