def spell_guess(self, value): """ The value is the maximum number of spell corrections per word. If non-zero, unlimited run-on corrections will be issued too. """ if not isinstance(value, int): raise TypeError("spell_guess must be set to an integer") clg.parse_options_set_spell_guess(self._obj, value)
def spell_guess(self, value): """ If the value is an int, it is the maximum number of spell corrections per word. If it is True, an int value of 7 is assumed. A value of 0 or False disables the spelling guesser. In case the spelling guesser is not disabled, run-on corrections will be issued too, not limited in their number. """ if not isinstance(value, bool) and (not isinstance(value, int) or value < 0): raise TypeError("spell_guess must be set to bool or a non-negative integer") if isinstance(value, bool): value = 7 if value else 0 clg.parse_options_set_spell_guess(self._obj, value)
def parse_options_set_spell_guess(*args) -> "void" : return _clinkgrammar.parse_options_set_spell_guess(*args)
def fset(self, value): if not isinstance(value, bool): raise TypeError("spell_guess must be set to a bool") clg.parse_options_set_spell_guess(self._po, 1 if value else 0)
def parse_options_set_spell_guess(opts, val): return _clinkgrammar.parse_options_set_spell_guess(opts, val)
def parse_options_set_spell_guess(opts: 'Parse_Options', spell_guess: 'int') -> "void": return _clinkgrammar.parse_options_set_spell_guess(opts, spell_guess)
def parse_options_set_spell_guess(*args): return _clinkgrammar.parse_options_set_spell_guess(*args)