preserve_formatting property

CheckGrammarOptions.preserve_formatting property

Allows to specify either IAiModelText.check_grammar() will try to preserve layout and formatting of the original document, or not. Default value is True.

@property
def preserve_formatting(self) -> bool:
    ...

@preserve_formatting.setter
def preserve_formatting(self, value: bool):
    ...

Remarks

When the option is set to False, the quality of grammar checking is higher than when this option is set to True. However, the original formatting of the text is not preserved in this case.

See Also